Permit private IPv6 while redacting responses
This commit is contained in:
parent
7bd5316b1b
commit
5cbb0364d2
1 changed files with 47 additions and 3 deletions
|
|
@ -32,12 +32,20 @@ pub struct OutboundRequest {
|
|||
credential_headers: HeaderMap,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct OutboundResponse {
|
||||
final_url: CanonicalUrl,
|
||||
response: reqwest::Response,
|
||||
}
|
||||
|
||||
impl fmt::Debug for OutboundResponse {
|
||||
fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
formatter
|
||||
.debug_struct("OutboundResponse")
|
||||
.field("status", &self.response.status())
|
||||
.finish_non_exhaustive()
|
||||
}
|
||||
}
|
||||
|
||||
impl<R: Resolver> OutboundClient<R> {
|
||||
#[must_use]
|
||||
pub fn builder(resolver: R, policy: OutboundPolicy) -> OutboundClientBuilder<R> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue