Struct iron::response::Response [] [src]

pub struct Response {
    pub status: Option<Status>,
    pub headers: Headers,
    pub extensions: TypeMap,
    pub body: Option<Box<WriteBody>>,
}
[]

The response representation given to Middleware

Fields

[]

The response status-code.

[]

The headers of the response.

[]

A TypeMap to be used as an extensible storage for data associated with this Response.

[]

The body of the response.

Methods

impl Response
[src]

[]

Construct a blank Response

[]

Construct a Response with the specified modifier pre-applied.

Trait Implementations

impl Debug for Response
[src]

[]

Formats the value using the given formatter.

impl Display for Response
[src]

[]

Formats the value using the given formatter.

impl Extensible for Response
[src]

[]

Get a reference to the type's extension storage.

[]

Get a mutable reference to the type's extension storage.

impl Plugin for Response
[src]

[]

Return a copy of the plugin's produced value. Read more

[]

Return a reference to the plugin's produced value. Read more

[]

Return a mutable reference to the plugin's produced value. Read more

[]

Create and evaluate a once-off instance of a plugin.

impl Set for Response
[src]

[]

Modify self using the provided modifier.

[]

Modify self through a mutable reference with the provided modifier.