Struct hyper::client::HttpConnector
[−]
[src]
pub struct HttpConnector { /* fields omitted */ }A connector for the http scheme.
Methods
impl HttpConnector[src]
fn new(threads: usize, handle: &Handle) -> HttpConnector
Construct a new HttpConnector.
Takes number of DNS worker threads.
fn enforce_http(&mut self, is_enforced: bool)
Option to enforce all Uris have the http scheme.
Enabled by default.
Trait Implementations
impl Clone for HttpConnector[src]
fn clone(&self) -> HttpConnector
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
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.
fn call(&self, uri: Uri) -> Self::Future
Process the request and return the response asynchronously.