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

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

Behavior regarding how to handle redirects within a Client.

Variants

Don't follow any redirects.

Follow all redirects.

Follow a redirect if the contained function returns true.

Trait Implementations

impl Copy for RedirectPolicy
[src]

impl Debug for RedirectPolicy
[src]

Formats the value using the given formatter.

impl Clone for RedirectPolicy
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for RedirectPolicy
[src]

Returns the "default value" for a type. Read more