Struct cataclysm::http::Response[][src]

pub struct Response {
    pub content: Vec<u8>,
    // some fields omitted
}
Expand description

Contains the data of an http response

Fields

content: Vec<u8>

Implementations

Creates an Continue response, with a 100 status code

Creates an Ok response, with a 200 status code

Creates a Created response, with a 201 status code

Creates an Accepted response, with a 202 status code

Creates a Non-Authoritative Information response, with a 203 status code

Creates a No Content response, with a 204 status code

Creates a Reset Content response, with a 205 status code

Creates a Partial Content response, with a 206 status code

Creates a Bad Request response, with a 400 status code

Creates an Unauthorized response, with a 401 status code

Creates a Payment Required response, with a 402 status code

Creates a Forbidden response, with a 403 status code

Creates a Not Found response, with a 404 status code

Creates an Internal Server Error response, with a 500 status code

Creates a Not Implemented response, with a 501 status code

Creates a Bad Gateway response, with a 502 status code

Creates a Service Unavailable response, with a 503 status code

Creates a new response, with defaut response status 200, and a text/html content type

Inserts a header into the response

Inserts a body in the response

Trait Implementations

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.