Struct tower_http::follow_redirect::FollowRedirectLayer
source · [−]pub struct FollowRedirectLayer<P = Standard> { /* private fields */ }
This is supported on crate feature
follow-redirect
only.Expand description
Layer
for retrying requests with a Service
to follow redirection responses.
See the module docs for more details.
Implementations
Create a new FollowRedirectLayer
with a Standard
redirection policy.
Create a new FollowRedirectLayer
with the given redirection Policy
.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<P> RefUnwindSafe for FollowRedirectLayer<P> where
P: RefUnwindSafe,
impl<P> Send for FollowRedirectLayer<P> where
P: Send,
impl<P> Sync for FollowRedirectLayer<P> where
P: Sync,
impl<P> Unpin for FollowRedirectLayer<P> where
P: Unpin,
impl<P> UnwindSafe for FollowRedirectLayer<P> where
P: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
This is supported on crate feature
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