Struct shio::response::Response [] [src]

pub struct Response { /* fields omitted */ }

Represents an HTTP response.

Methods

impl Response
[src]

Creates a new builder-style object to manufacture a Response.

Get the status.

Set the StatusCode for this response.

Take the body.

Set the body for this response.

Get a mutable reference to the headers.

Trait Implementations

impl From<Builder> for Response
[src]

Performs the conversion.

impl Responder for Response
[src]

impl Default for Response
[src]

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

impl IntoFuture for Response
[src]

The item that the future may resolve with.

The error that the future may resolve with.

The future that this type can be converted into.

Consumes this object and produces a future.