Struct hyper::client::Builder [] [src]

pub struct Builder { /* fields omitted */ }

Builder for a Client

Methods

impl Builder
[src]

Important traits for &'a mut W
[src]

Enable or disable keep-alive mechanics.

Default is enabled.

Important traits for &'a mut W
[src]

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

Pass None to disable timeout.

Default is 90 seconds.

Important traits for &'a mut W
[src]

Set whether HTTP/1 connections should try to use vectored writes, or always flatten into a single buffer.

Note that setting this to false may mean more copies of body data, but may also improve performance when an IO transport doesn't support vectored writes well, such as most TLS implementations.

Default is true.

Important traits for &'a mut W
[src]

Set whether HTTP/1 connections will write header names as title case at the socket level.

Note that this setting does not affect HTTP/2.

Default is false.

Important traits for &'a mut W
[src]

Set whether the connection must use HTTP/2.

Note that setting this to true prevents HTTP/1 from being allowed.

Default is false.

Important traits for &'a mut W
[src]

Set whether to retry requests that get disrupted before ever starting to write.

This means a request that is queued, and gets given an idle, reused connection, and then encounters an error immediately as the idle connection was found to be unusable.

When this is set to false, the related ResponseFuture would instead resolve to an Error::Cancel.

Default is true.

Important traits for &'a mut W
[src]

Set whether to automatically add the Host header to requests.

If true, and a request does not include a Host header, one will be added automatically, derived from the authority of the Uri.

Default is true.

Important traits for &'a mut W
[src]

Provide an executor to execute background Connection tasks.

[src]

Builder a client with this configuration and the default HttpConnector.

[src]

Combine the configuration of this builder with a connector to create a Client.

Trait Implementations

impl Clone for Builder
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for Builder
[src]

[src]

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

impl Debug for Builder
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Builder

impl Sync for Builder