Enum tower_http::follow_redirect::policy::Action
source · [−]pub enum Action {
Follow,
Stop,
}
This is supported on crate feature
follow-redirect
only.Expand description
A value returned by Policy::redirect
which indicates the action
FollowRedirect
should take for a redirection response.
Variants
Follow
Follow the redirection.
Stop
Do not follow the redirection, and return the redirection response as-is.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Action
impl UnwindSafe for Action
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