Struct hyper::client::Response [] [src]

pub struct Response<B = Body> { /* fields omitted */ }

An HTTP Response

Methods

impl<B> Response<B>
[src]

Constructs a default response

Get the HTTP version of this response.

Get the headers from the response.

Get a mutable reference to the headers.

Get the status from the server.

Set the StatusCode for this response.

Set the status and move the Response.

Useful for the "builder-style" pattern.

Set a header and move the Response.

Useful for the "builder-style" pattern.

Set the headers and move the Response.

Useful for the "builder-style" pattern.

Set the body.

Set the body and move the Response.

Useful for the "builder-style" pattern.

Read the body.

impl Response<Body>
[src]

Take the Body of this response.

Trait Implementations

impl<B> Default for Response<B>
[src]

Returns the "default value" for a type. Read more

impl Debug for Response
[src]

Formats the value using the given formatter. Read more

impl<B> Into<Message<__ProtoResponse, B>> for Response<B>
[src]

Performs the conversion.

Auto Trait Implementations

impl<B> Send for Response<B> where
    B: Send

impl<B = Body> !Sync for Response<B>