Struct hyper::server::Response [] [src]

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

An HTTP Response

Methods

impl<B> Response<B>
[src]

[src]

Constructs a default response

[src]

Get the HTTP version of this response.

[src]

Get the headers from the response.

[src]

Get a mutable reference to the headers.

[src]

Get the status from the server.

[src]

Set the StatusCode for this response.

[src]

Set the status and move the Response.

Useful for the "builder-style" pattern.

[src]

Set a header and move the Response.

Useful for the "builder-style" pattern.

[src]

Set the headers and move the Response.

Useful for the "builder-style" pattern.

[src]

Set the body.

[src]

Set the body and move the Response.

Useful for the "builder-style" pattern.

[src]

Read the body.

impl Response<Body>
[src]

[src]

Take the Body of this response.

Trait Implementations

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

[src]

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

impl Debug for Response
[src]

[src]

Formats the value using the given formatter. Read more

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

[src]

Performs the conversion.