Expand description
HTTP types and services for the Actix ecosystem.
§Crate Features
| Feature | Functionality | 
|---|---|
http2 | HTTP/2 support via h2. | 
openssl | TLS support via OpenSSL. | 
rustls-0_20 | TLS support via rustls 0.20. | 
rustls-0_21 | TLS support via rustls 0.21. | 
rustls-0_22 | TLS support via rustls 0.22. | 
rustls-0_23 | TLS support via rustls 0.23. | 
compress-brotli | Payload compression support: Brotli. | 
compress-gzip | Payload compression support: Deflate, Gzip. | 
compress-zstd | Payload compression support: Zstd. | 
trust-dns | Use trust-dns as the client DNS resolver. | 
Re-exports§
pub use self::error::Error;pub use self::header::ContentEncoding;
Modules§
- body
 - Traits and structures to aid consuming and writing HTTP payloads.
 - encoding
 - Content-Encoding support.
 - error
 - Error and Result module
 - h1
 - HTTP/1 protocol implementation.
 - h2
 - HTTP/2 protocol.
 - header
 - Pre-defined 
HeaderNames, traits for parsing and conversion, and other header utility methods. - test
 - Various testing helpers for use in internal and app tests.
 - uri
 - URI component of request and response lines
 - ws
 - WebSocket protocol implementation.
 
Structs§
- Extensions
 - A type map for request extensions.
 - Http
Service  - A 
ServiceFactoryfor HTTP/1.1 and HTTP/2 connections. - Http
Service Builder  - An HTTP service builder.
 - Message
 - Method
 - The Request Method (VERB)
 - Request
 - An HTTP request.
 - Request
Head  - Response
 - An HTTP response.
 - Response
Builder  - An HTTP response builder.
 - Response
Head  - Service
Config  - HTTP service configuration.
 - Status
Code  - An HTTP status code (
status-codein RFC 7230 et al.). - Uri
 - The URI component of a request.
 - Version
 - Represents a version of the HTTP spec.
 
Enums§
- Connection
Type  - Represents various types of connection
 - Keep
Alive  - Connection keep-alive config.
 - Payload
 - A streaming payload.
 - Protocol
 - A major HTTP protocol version.
 - Request
Head Type  
Traits§
- Http
Message  - Trait that implements general purpose operations on HTTP messages.
 
Type Aliases§
- Boxed
Payload Stream  - A boxed payload stream.