Struct cataclysm::http::Response [−][src]
Expand description
Contains the data of an http response
Fields
content: Vec<u8>
Implementations
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 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