Module tower_http::follow_redirect::policy
source · Available on crate feature
follow-redirect
only.Expand description
Tools for customizing the behavior of a FollowRedirect
middleware.
Structs
A type that holds information on a redirection attempt.
A redirection
Policy
created from a closure.A redirection
Policy
that removes credentials from requests in redirections.A redirection
Policy
created from a closure.A redirection
Policy
that stops cross-origin redirections.Enums
A value returned by
Policy::redirect
which indicates the action
FollowRedirect
should take for a redirection response.Traits
Trait for the policy on handling redirection responses.
An extension trait for
Policy
that provides additional adapters.Functions
Create a new redirection
Policy
from a closure F: Fn(&B) -> Option<B>
.Create a new redirection
Policy
from a closure
F: FnMut(&Attempt<'_>) -> Result<Action, E>
.