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

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

Configuration for a Client

Methods

impl<C, B> Config<C, B>
[src]

Set the body stream to be used by the Client.

Example

let cfg = Config::default()
    .body::<hyper::Body>();

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 90 seconds.

impl<C, B> Config<C, B> where
    C: Connect,
    B: Stream<Error = Error>,
    B::Item: AsRef<[u8]>, 
[src]

Construct the Client with this configuration.

impl<B> Config<UseDefaultConnector, B> where
    B: Stream<Error = Error>,
    B::Item: AsRef<[u8]>, 
[src]

Construct the Client with this configuration.

Trait Implementations

impl Default for Config<UseDefaultConnector, Body>
[src]

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

impl<C, B> Debug for Config<C, B>
[src]

Formats the value using the given formatter.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more