Struct tower_http::follow_redirect::policy::FilterCredentials
source · [−]pub struct FilterCredentials { /* private fields */ }
follow-redirect
only.Expand description
A redirection Policy
that removes credentials from requests in redirections.
Implementations
Create a new FilterCredentials
that removes blocklisted request headers in cross-origin
redirections.
Configure self
to mark cross-origin redirections as “blocked”.
Configure self
to mark no redirections as “blocked”.
Configure self
to remove blocklisted headers in “blocked” redirections.
The blocklist includes the following headers:
Authorization
Cookie
Proxy-Authorization
Configure self
to remove all headers in “blocked” redirections.
Configure self
to remove no headers in “blocked” redirections.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FilterCredentials
impl Send for FilterCredentials
impl Sync for FilterCredentials
impl Unpin for FilterCredentials
impl UnwindSafe for FilterCredentials
Blanket Implementations
Mutably borrows from an owned value. Read more
follow-redirect
only.Create a new Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more