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 Clone for RedirectPolicy

fn clone(&self) -> RedirectPolicy

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

impl Default for RedirectPolicy

fn default() -> RedirectPolicy

Derived Implementations

impl Copy for RedirectPolicy