[][src]Struct hyper::client::HttpConnector

pub struct HttpConnector<R = GaiResolver> { /* fields omitted */ }

A connector for the http scheme.

Performs DNS resolution in a thread pool, and then connects over TCP.

Note

Sets the HttpInfo value on responses, which includes transport information such as the remote socket address used.

Methods

impl HttpConnector
[src]

Construct a new HttpConnector.

Takes number of DNS worker threads.

Construct a new HttpConnector.

Takes an executor to run blocking getaddrinfo tasks on.

impl HttpConnector<TokioThreadpoolGaiResolver>
[src]

Construct a new HttpConnector using the TokioThreadpoolGaiResolver.

This resolver requires the threadpool runtime to be used.

impl<R> HttpConnector<R>
[src]

Construct a new HttpConnector.

Takes a Resolve to handle DNS lookups.

Option to enforce all Uris have the http scheme.

Enabled by default.

Set a handle to a Reactor to register connections to.

If None, the implicit default reactor will be used.

Set that all sockets have SO_KEEPALIVE set with the supplied duration.

If None, the option will not be set.

Default is None.

Set that all sockets have SO_NODELAY set to the supplied value nodelay.

Default is false.

Set that all sockets are bound to the configured address before connection.

If None, the sockets will not be bound.

Default is None.

Set timeout for RFC 6555 (Happy Eyeballs) algorithm.

If hostname resolves to both IPv4 and IPv6 addresses and connection cannot be established using preferred address family before timeout elapses, then connector will in parallel attempt connection using other address family.

If None, parallel connection attempts are disabled.

Default is 300 milliseconds.

Set that all socket have SO_REUSEADDR set to the supplied value reuse_address.

Default is false.

Trait Implementations

impl<R> Connect for HttpConnector<R> where
    R: Resolve + Clone + Send + Sync,
    R::Future: Send
[src]

The connected IO Stream.

An error occured when trying to connect.

A Future that will resolve to the connected Transport.

impl<R: Clone> Clone for HttpConnector<R>
[src]

Performs copy-assignment from source. Read more

impl<R: Debug> Debug for HttpConnector<R>
[src]

Auto Trait Implementations

impl<R> Send for HttpConnector<R> where
    R: Send

impl<R> Sync for HttpConnector<R> where
    R: Sync

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T