Skip to main content

Crate phoenix_http

Crate phoenix_http 

Source

Modules§

header
HTTP header types

Structs§

Bytes
A cheaply cloneable and sliceable chunk of contiguous memory.
CloseCode
RFC 6455 close status codes used by the Phoenix WebSocket facade.
CloseFrame
A WebSocket close frame observed by application code.
ConnectionInfo
Connection metadata populated before Phoenix middleware executes.
ConnectionUpgrade
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
HeaderMap
A specialized multimap for header names and values.
HeaderName
Represents an HTTP header field name
HeaderValue
Represents an HTTP header field value.
InvalidCspNonce
InvalidHeader
InvalidSseField
Json
KeepAlive
Validated SSE keepalive policy.
LastEventId
Optional browser reconnection cursor from the Last-Event-ID header.
LastEventIdRejection
Method
The Request Method (VERB)
MiddlewareFn
Mime
A parsed mime or media type.
Multipart
MultipartData
MultipartField
Next
Path
PathRejection
Query
QueryRejection
Redirect
A validated HTTP redirect response.
Request
RequestBodyStream
A bounded, deadline-aware stream of incoming request body chunks.
RequestBodyStreamRejection
Response
ResponseBodyError
A redacted response-stream failure safe to expose at the Hyper boundary.
ResponseBodySummary
Exactly-once summary emitted when a buffered or streaming response finishes.
ResponseContext
Request metadata retained while a handler converts its output into a response.
RouteManifest
SecurityHeaders
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.
StateMiddleware
Insert cloneable application state into every request handled downstream.
StateRejection
StatusCode
An HTTP status code (status-code in RFC 9110 et al.).
StreamingHandler
Handler wrapper that opts one route into pull-based request body streaming.
TypedHandler
Uri
The URI component of a request.
Version
Represents a version of the HTTP spec.
WebSocket
An upgraded WebSocket connection.
WebSocketUpgrade
Extractor that validates an HTTP/1.1 WebSocket handshake and upgrades the connection.

Enums§

FormRejection
HeaderRejection
JsonRejection
Message
A WebSocket message.
MultipartRejection
RequestBodyError
RequestBodyMode
How the server should expose an incoming request body to a route handler.
ResponseBody
ResponseBodyOutcome
Why a response body stopped producing bytes.
SseConfigError
StringMapRejection
TransportScheme
Transport scheme established by the socket or a trusted proxy layer.
WebSocketConfigError
WebSocketError
Application-facing WebSocket I/O error. Details stay redacted.
WebSocketUpgradeRejection
Why a WebSocket upgrade extractor rejected the request.

Traits§

FromMultipart
FromRequest
Handler
IntoResponse
IntoTypedHandler
Middleware

Functions§

middleware_fn
streaming
Mark a handler as consuming RequestBodyStream instead of a pre-buffered body.
typed

Type Aliases§

BoxFuture
ByteStream