Expand description
Response helpers for the OxiHTTP server.
Functionsยง
- bad_
request - Build a 400 Bad Request response with a message.
- empty_
response - Build an empty response with a status code.
- form_
response - Build an
application/x-www-form-urlencodedresponse from aoxihttp_core::FormBody. - html_
response - Build an HTML response.
- internal_
error - Build a 500 Internal Server Error response with a message.
- json_
response - Build a JSON response from a serializable value.
- json_
response_ with_ status - Build a JSON response with a custom status code.
- no_
content - Build a 204 No Content response.
- redirect_
response - Build a redirect response (302 Found).
- text_
response - Build a plain text response.