[−][src]Struct hyper::client::HttpConnector
A connector for the http
scheme.
Methods
impl HttpConnector
[src][−]
pub fn new(threads: usize, handle: &Handle) -> HttpConnector
[src][−]
Construct a new HttpConnector.
Takes number of DNS worker threads.
pub fn new_with_executor<E: 'static>(
executor: E,
handle: &Handle
) -> HttpConnector where
E: Executor<HttpConnectorBlockingTask>,
[src][−]
executor: E,
handle: &Handle
) -> HttpConnector where
E: Executor<HttpConnectorBlockingTask>,
Construct a new HttpConnector.
Takes an executor to run blocking tasks on.
pub fn enforce_http(&mut self, is_enforced: bool)
[src][−]
Option to enforce all Uri
s have the http
scheme.
Enabled by default.
pub fn set_keepalive(&mut self, dur: Option<Duration>)
[src][−]
Set that all sockets have SO_KEEPALIVE
set with the supplied duration.
If None
, the option will not be set.
Default is None
.
Trait Implementations
impl Clone for HttpConnector
[src][+]
impl Debug for HttpConnector
[src][+]
impl Service for HttpConnector
[src][+]
Auto Trait Implementations
impl !RefUnwindSafe for HttpConnector
impl !Send for HttpConnector
impl !Sync for HttpConnector
impl Unpin for HttpConnector
impl !UnwindSafe for HttpConnector
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,