Skip to main content

Module response

Module response 

Source
Expand description

Types and traits for generating responses.

See axum::response for more details.

Structs§

AppendHeaders
Append headers to a response.
ErrorResponse
An IntoResponse-based error type
ForceStatusCode
Set the status code regardless of whether IntoResponseFailed is used or not.
IntoResponseFailed
Response part that stops status code overrides.
ResponseParts
Parts of a response.
TryIntoHeaderError
Error returned if converting a value to a header fails.

Traits§

IntoResponse
Trait for generating responses.
IntoResponseParts
Trait for adding headers and extensions to a response.

Type Aliases§

Response
Type alias for [http::Response] whose body type defaults to Body, the most common body type used with axum.
Result
An IntoResponse-based result type that uses ErrorResponse as the error type.