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 two Policys.
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 two Policys.
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>.

Type Definitions

A redirection Policy with a reasonable set of standard behavior.