Enum chttp::options::RedirectPolicy [] [src]

pub enum RedirectPolicy {
    None,
    Follow,
    Limit(u32),
}

Describes a policy for handling server redirects.

Variants

Do not apply any special treatment to redirect responses. The response will be return as-is and redirects will not be followed.

This is the default policy.

Follow all redirects automatically.

Follow redirects automatically up to a maximum number of redirects.

Trait Implementations

impl Clone for RedirectPolicy
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for RedirectPolicy
[src]

impl Debug for RedirectPolicy
[src]

[src]

Formats the value using the given formatter.

impl Eq for RedirectPolicy
[src]

impl PartialEq for RedirectPolicy
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Default for RedirectPolicy
[src]

[src]

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