Provide url in Response Debug impl
This commit is contained in:
@@ -79,10 +79,14 @@ impl fmt::Debug for Response {
|
|||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||||
write!(
|
write!(
|
||||||
f,
|
f,
|
||||||
"Response[status: {}, status_text: {}]",
|
"Response[status: {}, status_text: {}",
|
||||||
self.status(),
|
self.status(),
|
||||||
self.status_text()
|
self.status_text(),
|
||||||
)
|
)?;
|
||||||
|
if let Some(url) = &self.url {
|
||||||
|
write!(f, ", url: {}", url)?;
|
||||||
|
}
|
||||||
|
write!(f, "]")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user