Struct hyper::client::HttpConnector
[−]
[src]
pub struct HttpConnector { /* fields omitted */ }
A connector for the http
scheme.
Methods
impl HttpConnector
[src]
fn new(handle: &Handle, threads: usize) -> HttpConnector
Construct a new HttpConnector.
Takes number of DNS worker threads.
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 = Url
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(&mut self, url: Url) -> Self::Future
Process the request and return the response asynchronously.