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

pub struct Client<C, B = Body> { /* fields omitted */ }

A Client to make outgoing HTTP requests.

Methods

impl Client<HttpConnector, Body>
[src]

Create a new Client with the default config.

impl Client<HttpConnector, Body>
[src]

Configure a Client.

Example


let client = hyper::Client::configure()
    .keep_alive(true)
    .build(&handle);

impl<C, B> Client<C, B> where
    C: Connect,
    B: Stream<Error = Error> + 'static,
    B::Item: AsRef<[u8]>, 
[src]

Send a GET Request using this Client.

Send a constructed Request using this Client.

Trait Implementations

impl<C, B> Service for Client<C, B> where
    C: Connect,
    B: Stream<Error = Error> + 'static,
    B::Item: AsRef<[u8]>, 
[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, B> Clone for Client<C, B>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<C, B = Body> !Send for Client<C, B>

impl<C, B = Body> !Sync for Client<C, B>

Blanket Implementations

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

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T> From for T
[src]

Performs the conversion.

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

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Important traits for &'a mut W

Immutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Important traits for &'a mut W

Mutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more