Crate axum_responses

Source

Modules§

http
standardDeprecated
Standard HTTP responses with just status codes and default messages

Macros§

response
This macro is used to create a response builder with a specified status code. It’s a shorthand for constructing an HttpResponse with a status code. It can also be used to create a response with a JSON body. The macro takes a status code as an argument, and optionally a JSON object.

Type Aliases§

Result
This type alias is used to simplify the result type for handlers. It represents a result that can either be an Type T or an HttpResponse.