Enum hyper::client::RedirectPolicy [] [src]

pub enum RedirectPolicy {
    FollowNone,
    FollowAll,
    FollowIf(fn(&Url) -> bool),
}

Behavior regarding how to handle redirects within a Client.

Variants

FollowNone

Don't follow any redirects.

FollowAll

Follow all redirects.

FollowIf

Follow a redirect if the contained function returns true.

Trait Implementations

impl Debug for RedirectPolicy

fn fmt(&self, fmt: &mut Formatter) -> Result

impl Clone for RedirectPolicy

fn clone(&self) -> RedirectPolicy

1.0.0fn clone_from(&mut self, source: &Self)

impl Default for RedirectPolicy

fn default() -> RedirectPolicy

Derived Implementations

impl Copy for RedirectPolicy