Module response

Module response 

Source
Available on crate feature server only.
Expand description

Response types.

Structs§

OutgoingResponse
Server response that can be sent to an HTTP client.
OutgoingResponseBuilder
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.