Skip to main content

Module h1

Module h1 

Source
Expand description

HTTP/1 protocol services, codecs, payload decoding, and lifecycle control.

H1Service runs an HTTP/1-only server service. Codec provides low-level request decoding and response encoding, while control exposes connection, request, expectation, upgrade, and disconnect events.

Re-exports§

pub use self::control::Control;
pub use self::control::ControlAck;

Modules§

control
Connection lifecycle messages and acknowledgements.

Structs§

Codec
Stateful HTTP/1 request decoder and response encoder.
DefaultControlService
Control service that acknowledges every HTTP/1 lifecycle event using its default action.
H1Service
Server transport service that dispatches HTTP/1 requests.
Payload
A buffered stream of an HTTP/1 request body’s decoded bytes.
PayloadDecoder
Incremental decoder for an HTTP/1 message body.

Enums§

Message
A message passed to an HTTP/1 request or response encoder.
MessageType
Payload state reported by the HTTP client codec.
PayloadItem
A decoded HTTP/1 payload item.
PayloadType
The payload framing and decoder selected for an incoming HTTP/1 message.
ProtocolError
Errors that can occur while dispatching HTTP/1 requests.