Struct zircon::prelude::Response [] [src]

pub struct Response {
    pub origin: HyperResponse,
}

Response represents http response.

Fields

Hyper original response.

Methods

impl Response
[src]

[src]

Creates a fresh response.

[src]

Converts Response to HandlerResult. You need to call render() after building Response.

[src]

Creates a Response that contains only text.

[src]

Creates a json Response.

[src]

Creates a Response for redirect.

[src]

Set header in Response. Use like a builder pattern.

[src]

Set status code in Response. Use like a builder pattern.

Trait Implementations

impl SetCookieJar for Response
[src]

impl RenderFile for Response
[src]

[src]

impl RenderTemplate for Response
[src]

[src]