Struct hyper::Response [] [src]

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

A response for a client request to a remote server.

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.

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.

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

Performs the conversion.