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

pub struct Response { /* fields omitted */ }

The Response sent to a client after receiving a Request in a Service.

The default StatusCode for a Response is 200 OK.

Methods

impl Response
[src]

Create a new Response.

The headers of this response.

The status of this response.

The HTTP version of this response.

Get a mutable reference to the Headers.

Set the StatusCode for this response.

Set the body.

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 and move the Response.

Useful for the "builder-style" pattern.

Trait Implementations

impl Default for Response
[src]

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

impl Debug for Response
[src]

Formats the value using the given formatter.