Struct reqwest_mock::config::ClientConfig [] [src]

pub struct ClientConfig {
    pub gzip: bool,
    pub redirect: RedirectPolicy,
    pub referer: bool,
    pub timeout: Option<Duration>,
}

Configures some parameters for a Client instance.

Fields

Enable auto gzip decompression checking the ContentEncoding response header.

Default is enabled.

RedirectPolicy for this client.

Default will follow up to 10 redirects.

Enable or disable automatic setting of the Referer header.

Default is true.

TODO: Not actually implemented yet.

Timeout for both the read and write operations of a client.

Methods

impl ClientConfig
[src]

Trait Implementations

impl Clone for ClientConfig
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ClientConfig
[src]

Formats the value using the given formatter.

impl Default for ClientConfig
[src]

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