Modules§
- header
- HTTP header types
Structs§
- Bytes
- A cheaply cloneable and sliceable chunk of contiguous memory.
- Close
Code - RFC 6455 close status codes used by the Phoenix WebSocket facade.
- Close
Frame - A WebSocket close frame observed by application code.
- Connection
Info - Connection metadata populated before Phoenix middleware executes.
- Connection
Upgrade - Takeable Hyper upgrade handle installed by the HTTP/1 connection layer.
- CspNonce
- A validated request-scoped Content Security Policy nonce.
- Download
- A buffered binary response with safe download headers.
- Extensions
- A type map of protocol extensions.
- Form
- Header
- Header
Map - A specialized multimap for header names and values.
- Header
Name - Represents an HTTP header field name
- Header
Value - Represents an HTTP header field value.
- Invalid
CspNonce - Invalid
Header - Invalid
SseField - Json
- Keep
Alive - Validated SSE keepalive policy.
- Last
Event Id - Optional browser reconnection cursor from the
Last-Event-IDheader. - Last
Event IdRejection - Method
- The Request Method (VERB)
- Middleware
Fn - Mime
- A parsed mime or media type.
- Multipart
- Multipart
Data - Multipart
Field - Next
- Path
- Path
Rejection - Query
- Query
Rejection - Redirect
- A validated HTTP redirect response.
- Request
- Request
Body Stream - A bounded, deadline-aware stream of incoming request body chunks.
- Request
Body Stream Rejection - Response
- Response
Body Error - A redacted response-stream failure safe to expose at the Hyper boundary.
- Response
Body Summary - Exactly-once summary emitted when a buffered or streaming response finishes.
- Response
Context - Request metadata retained while a handler converts its output into a response.
- Route
Manifest - Security
Headers - Sse
- A backpressure-aware Server-Sent Events response.
- SseEvent
- One validated Server-Sent Event.
- State
- A clone of application state stored in the request extension map.
- State
Middleware - Insert cloneable application state into every request handled downstream.
- State
Rejection - Status
Code - An HTTP status code (
status-codein RFC 9110 et al.). - Streaming
Handler - Handler wrapper that opts one route into pull-based request body streaming.
- Typed
Handler - Uri
- The URI component of a request.
- Version
- Represents a version of the HTTP spec.
- WebSocket
- An upgraded WebSocket connection.
- WebSocket
Upgrade - Extractor that validates an HTTP/1.1 WebSocket handshake and upgrades the connection.
Enums§
- Form
Rejection - Header
Rejection - Json
Rejection - Message
- A WebSocket message.
- Multipart
Rejection - Request
Body Error - Request
Body Mode - How the server should expose an incoming request body to a route handler.
- Response
Body - Response
Body Outcome - Why a response body stopped producing bytes.
- SseConfig
Error - String
MapRejection - Transport
Scheme - Transport scheme established by the socket or a trusted proxy layer.
- WebSocket
Config Error - WebSocket
Error - Application-facing WebSocket I/O error. Details stay redacted.
- WebSocket
Upgrade Rejection - Why a WebSocket upgrade extractor rejected the request.
Traits§
Functions§
- middleware_
fn - streaming
- Mark a handler as consuming
RequestBodyStreaminstead of a pre-buffered body. - typed