Expand description
Tools for customizing the behavior of a FollowRedirect middleware.
Structs§
- And
- A redirection
Policythat combines the results of twoPolicys. - Attempt
- A type that holds information on a redirection attempt.
- Clone
Body Fn - A redirection
Policycreated from a closure. - Filter
Credentials - A redirection
Policythat removes credentials from requests in redirections. - Limited
- A redirection
Policythat limits the number of successive redirections. - Or
- A redirection
Policythat combines the results of twoPolicys. - Redirect
Fn - A redirection
Policycreated from a closure. - Same
Origin - A redirection
Policythat stops cross-origin redirections.
Enums§
- Action
- A value returned by
Policy::redirectwhich indicates the actionFollowRedirectshould take for a redirection response.
Traits§
- Policy
- Trait for the policy on handling redirection responses.
- Policy
Ext - An extension trait for
Policythat provides additional adapters.
Functions§
- clone_
body_ fn - Create a new redirection
Policyfrom a closureF: Fn(&B) -> Option<B>. - redirect_
fn - Create a new redirection
Policyfrom a closureF: FnMut(&Attempt<'_>) -> Result<Action, E>.