Expand description
HTTP protocol support.
This module contains HTTP request and response types, HTTP/1 and HTTP/2 services, payload streaming, protocol configuration, and common header types.
Re-exports§
pub use self::error::ResponseError;
Modules§
- body
- Traits and structures to aid consuming and writing HTTP payloads.
- encoding
- Content-Encoding support
- error
- HTTP-related errors.
- h1
- HTTP/1 protocol services, codecs, payload decoding, and lifecycle control.
- h2
- HTTP/2 implementation
- header
- Various http headers
- test
- Test helpers to use during testing.
Structs§
- Date
Service - Generates the cached HTTP
Dateheader used by the protocol encoders. - Header
Item - A parsed header that preserves its original name and value.
- Header
Map - A multimap of HTTP header names to values.
- Http
Service - An HTTP/1.1 and HTTP/2 transport service.
- Http
Service Config - Configuration shared by HTTP/1 and HTTP/2 server services.
- Method
- The Request Method (VERB)
- Request
- An HTTP request.
- Request
Head - The parsed metadata for an HTTP request.
- Response
- An HTTP response.
- Response
Builder - An HTTP response builder
- Response
Head - The metadata for an HTTP response.
- Status
Code - An HTTP status code (
status-codein RFC 9110 et al.). - Version
- Represents a version of the HTTP spec.
Enums§
- Connection
Type - The connection behavior selected for an HTTP message.
- Http
Protocol - HTTP protocol selected for an I/O stream.
- Keep
Alive - Server keep-alive behavior.
- Payload
- An HTTP request payload.
Constants§
- ALPN_
PROTOS - ALPN protocol identifiers for negotiating HTTP/2 or HTTP/1.1.
- ALPN_
PROTO_ H1 - ALPN protocol identifiers for HTTP/1.1.
- ALPN_
PROTO_ H2 - ALPN protocol identifiers for HTTP/2.
Traits§
- Http
Message - Common operations for HTTP requests and responses.
Functions§
Type Aliases§
- Payload
Stream - A boxed stream of HTTP payload chunks.