Module response
Expand description
Types and traits for generating responses.
See [crate::response
] for more details.
Modules§
Structs§
- Append
Headers - Append headers to a response.
- Css
- An HTML response.
- Csv
- Wrapper used to create Csv Http
Response
s, as well as to extract Csv from HttpRequest
bodies. - Datastar
Script - Datastar script ready to be served.
- 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 headers in 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.
- Script
- An HTML response.
- Sse
- An SSE 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§
- Result
- An
IntoResponse
-based result type that usesErrorResponse
as the error type.