Module response
Expand description
Types and traits for generating responses.
See crate::response
for more details.
Structs§
- Append
Headers - Append headers to a response.
- Csv
- Wrapper used to create Csv Http
Response
s, as well as to extract Csv from HttpRequest
bodies. - Error
Response - An
IntoResponse
-based error type - Form
- Wrapper used to create Form Http
Response
s, as well as to extract Form from HttpRequest
bodies. - Headers
- Use typed
Header
s i a response. - Html
- An HTML response.
- Json
- Wrapper used to create Json Http
Response
s, as well as to extract Json from HttpRequest
bodies. - Redirect
- Utility struct to easily create a redirect response.
- Response
Parts - Parts of a response.
- Static
Response Factory - Wrapper that can be used to turn an
IntoResponse
type into something that implementsInto<Response>
. - TryInto
Header Error - Error returned if converting a value to a header fails.
Traits§
- Into
Response - Trait for generating responses.
- Into
Response Parts - Trait for adding headers and extensions to a response.
Type Aliases§
- Response
- Type alias for
http::Response
whose body type defaults toBody
, the most common body type used with rama. - Result
- An
IntoResponse
-based result type that usesErrorResponse
as the error type.