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

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

Configuration for a Client

Methods

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

[src]

Set the body stream to be used by the Client.

Example

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

[src]

Set the Connect type to be used.

[src]

Enable or disable keep-alive mechanics.

Default is enabled.

[src]

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

Pass None to disable timeout.

Default is 90 seconds.

[src]

Disable tokio-proto internal usage.

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

[src]

Construct the Client with this configuration.

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

[src]

Construct the Client with this configuration.

Trait Implementations

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

[src]

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

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

[src]

Formats the value using the given formatter.

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more