Struct iron::response::Response
[−]
[src]
pub struct Response { pub status: Option<Status>, pub headers: Headers, pub extensions: TypeMap, pub body: Option<Box<WriteBody + Send>>, }
The response representation given to Middleware
Fields
status | The response status-code. |
headers | The headers of the response. |
extensions | A TypeMap to be used as an extensible storage for data associated with this Response. |
body | The body of the response. |
Methods
impl Response
fn new() -> Response
Construct a blank Response
fn with<M: Modifier<Response>>(m: M) -> Response
Construct a Response with the specified modifier pre-applied.