Struct hyper::client::Config [] [src]

pub struct Config<C> { /* fields omitted */ }

Configuration for a Client

Methods

impl<C: Connect> Config<C>
[src]

Set the Connect type to be used.

Enable or disable keep-alive mechanics.

Default is enabled.

Set an optional timeout for idle sockets being kept-alive.

Pass None to disable timeout.

Default is 2 minutes.

Set the max table size allocated for holding on to live sockets.

Default is 1024.

Set the timeout for connecting to a URL.

Default is 10 seconds.

Set number of Dns workers to use for this client

Default is 4

Construct the Client with this configuration.

Trait Implementations

impl<C: Debug> Debug for Config<C>
[src]

Formats the value using the given formatter.

impl<C: Clone> Clone for Config<C>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Config<DefaultConnector>
[src]

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