Struct hyper::client::Client [] [src]

pub struct Client<C> { /* fields omitted */ }
[]

A Client to make outgoing HTTP requests.

Methods

impl Client<DefaultConnector>
[src]

[]

Configure a Client.

Example

# use hyper::Client;
let client = Client::configure()
    .keep_alive(true)
    .max_sockets(10_000)
    .build().unwrap();

impl Client<DefaultConnector>
[src]

[]

Create a new Client with the default config.

impl<C: Connect> Client<C>
[src]

[]

Send a GET Request using this Client.

[]

Send a constructed Request using this Client.

Trait Implementations

impl<C: Clone> Clone for Client<C>
[src]

[]

Returns a copy of the value. Read more

[]

Performs copy-assignment from source. Read more

impl<C: Connect> Service for Client<C>
[src]

Requests handled by the service.

Responses given by the service.

Errors produced by the service.

The future response value.

[]

Process the request and return the response asynchronously.

impl<C> Debug for Client<C>
[src]

[]

Formats the value using the given formatter.