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
Responses, as well as to extract Csv from HttpRequestbodies. - Datastar
Script - Datastar script ready to be served.
- Error
Response - An
IntoResponse-based error type - Form
- Wrapper used to create Form Http
Responses, as well as to extract Form from HttpRequestbodies. - Headers
- Use typed headers in a response.
- Html
- An HTML response.
- Json
- Wrapper used to create Json Http
Responses, as well as to extract Json from HttpRequestbodies. - Octet
Stream - An octet-stream response for serving arbitrary binary data.
- 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
IntoResponsetype 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 usesErrorResponseas the error type.