Struct hyper::client::connect::HttpConnector [−][src]
pub struct HttpConnector<R = GaiResolver> { /* fields omitted */ }
Expand description
Implementations
Construct a new HttpConnector.
Construct a new HttpConnector.
Takes a Resolver
to handle DNS lookups.
Option to enforce all Uri
s have the http
scheme.
Enabled by default.
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
.
Sets the value of the SO_SNDBUF option on the socket.
Sets the value of the SO_RCVBUF option on the socket.
Set that all sockets are bound to the configured address before connection.
If None
, the sockets will not be bound.
Default is None
.
Set that all sockets are bound to the configured IPv4 or IPv6 address (depending on host’s preferences) before connection.
Set the connect timeout.
If a domain resolves to multiple IP addresses, the timeout will be evenly divided across them.
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
Auto Trait Implementations
impl<R> RefUnwindSafe for HttpConnector<R> where
R: RefUnwindSafe,
impl<R> Send for HttpConnector<R> where
R: Send,
impl<R> Sync for HttpConnector<R> where
R: Sync,
impl<R> Unpin for HttpConnector<R> where
R: Unpin,
impl<R> UnwindSafe for HttpConnector<R> where
R: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more