Struct hyper::client::Client [−][src]
pub struct Client { /* fields omitted */ }
Expand description
A Client to use additional features with Requests.
Clients can handle things such as: redirect policy, connection pooling.
Implementations
Create a new Client with a configured Pool Config.
Create a Client with an HTTP proxy to a (host, port).
pub fn with_proxy_config<C, S>(proxy_config: ProxyConfig<C, S>) -> Client where
C: NetworkConnector + Send + Sync + 'static,
C::Stream: NetworkStream + Send + Clone,
S: SslClient<C::Stream> + Send + Sync + 'static,
pub fn with_proxy_config<C, S>(proxy_config: ProxyConfig<C, S>) -> Client where
C: NetworkConnector + Send + Sync + 'static,
C::Stream: NetworkStream + Send + Clone,
S: SslClient<C::Stream> + Send + Sync + 'static,
Create a Client using a proxy with a custom connector and SSL client.
pub fn with_connector<C, S>(connector: C) -> Client where
C: NetworkConnector<Stream = S> + Send + Sync + 'static,
S: NetworkStream + Send,
pub fn with_connector<C, S>(connector: C) -> Client where
C: NetworkConnector<Stream = S> + Send + Sync + 'static,
S: NetworkStream + Send,
Create a new client with a specific connector.
Create a new client with a specific Protocol
.
Set the RedirectPolicy.
Set the read timeout value for all requests.
Set the write timeout value for all requests.
Build a Get request.
Build a Head request.
Build a Patch request.
Build a Post request.
Build a Put request.
Build a Delete request.
Build a new request using this Client.