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
gzip: bool
Enable auto gzip decompression checking the ContentEncoding
response header.
Default is enabled.
redirect: RedirectPolicy
RedirectPolicy
for this client.
Default will follow up to 10 redirects.
referer: bool
Enable or disable automatic setting of the Referer
header.
Default is true.
TODO: Not actually implemented yet.
timeout: Option<Duration>
Timeout for both the read and write operations of a client.
Methods
impl ClientConfig
[src]
fn new() -> Self
Trait Implementations
impl Clone for ClientConfig
[src]
fn clone(&self) -> ClientConfig
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more