rama::http::layer::follow_redirect

Module policy

Expand description

Tools for customizing the behavior of a FollowRedirect middleware.

Structs§

Enums§

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 Aliases§

  • A redirection Policy with a reasonable set of standard behavior.