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]

[src]

Construct a blank Response

[src]

Construct a Response with the specified modifier pre-applied.

Trait Implementations

impl Debug for Response
[src]

[src]

Formats the value using the given formatter.

impl Display for Response
[src]

[src]

Formats the value using the given formatter. Read more

impl Extensible for Response
[src]

[src]

Get a reference to the type's extension storage.

[src]

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

impl Plugin for Response
[src]

[src]

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

[src]

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

[src]

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

[src]

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

impl Set for Response
[src]

[src]

Modify self using the provided modifier.

[src]

Modify self through a mutable reference with the provided modifier.