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 redirection
Policy
that combines the results of twoPolicy
s. - 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
that limits the number of successive redirections. - A redirection
Policy
that combines the results of twoPolicy
s. - 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 actionFollowRedirect
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 closureF: Fn(&B) -> Option<B>
. - Create a new redirection
Policy
from a closureF: FnMut(&Attempt<'_>) -> Result<Action, E>
.
Type Aliases§
- A redirection
Policy
with a reasonable set of standard behavior.