Skip to main content

Module response

Module response 

Source
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-urlencoded response from a oxihttp_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.