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
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.