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

pub struct HttpConnector { /* fields omitted */ }

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]

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 Uris 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]

type Request = Uri

Requests handled by the service.

type Response = TcpStream

Responses given by the service.

type Error = Error

Errors produced by the service.

type Future = HttpConnecting

The future response value.

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]

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.