Skip to main content

Module response

Module response 

Source
Expand description

Response utilities and the IntoResponse trait.

Re-exports§

pub use sse::Sse;
pub use crate::routing::extract::Json;

Modules§

sse
Server-Sent Events (SSE) — see the module docs for usage. Requires the sse feature. Server-Sent Events (SSE), mirroring axum::response::sse.

Structs§

AppendHeaders
Appends an arbitrary collection of headers to a response without replacing any existing header of the same name, matching axum::response::AppendHeaders.
Html
An HTML response.
Redirect
Response that redirects the client to another location.
ResponseParts
The response under construction, passed to IntoResponseParts::into_response_parts so implementors can attach headers/extensions without unpacking the whole response.

Enums§

Body
The unified body type for Tachyon-Web responses.

Traits§

IntoResponse
Trait for generating an HTTP response.
IntoResponseParts
Trait for types that attach headers/extensions to a response without providing its body — the building block for flexible, order-independent response tuples.