Struct susanoo::Response
[−]
[src]
pub struct Response { /* fields omitted */ }
[unstable] A response which contains all information to construct
Methods
impl Response
[src]
fn from_raw(raw: Response) -> Self
fn into_raw(self) -> Response
fn new() -> Self
fn with_status(self, status: StatusCode) -> Self
fn with_header<H: Header>(self, header: H) -> Self
fn with_body<B: Into<Body>>(self, body: B) -> Self
Trait Implementations
impl Responder for Response
[src]
fn respond(self, _: Context) -> Result<Response, HandleError>
Convert itself to hyper::Response
.