Available on crate feature
server
only.Expand description
Response types.
Structs§
- Outgoing
Response - Server response that can be sent to an HTTP client.
- Outgoing
Response Builder - Builder for outgoing HTTP responses.
Functions§
- bad_
gateway - A function returning Bad Gateway response.
- bad_
request - A function returning Bad Request response.
- empty_
response - A function returning an empty response with a given status code.
- expectation_
failed - A function returning Expectation Failed response.
- gateway_
timeout - A function returning Gateway Timeout response.
- method_
not_ allowed - A function returning Method Not Allowed response.
- moved_
permanently - A function returning a response with Moved Permanently status and a given location.
- no_
content - A function returning No Content response.
- not_
found - A function returning Not Found response.
- not_
implemented - A function returning Not Implemented response.
- see_
other - A function returning a response with See Other status and a given location.
- unauthorized
- A function returning Unauthorized response.