Crate actix_http
source ·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 | 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::payload::PayloadStream;
Deprecatedpub use self::error::Error;
pub use self::header::ContentEncoding;
Modules§
- Traits and structures to aid consuming and writing HTTP payloads.
- encoding
__compress
Content-Encoding support. - Error and Result module
- HTTP/1 protocol implementation.
- h2
http2
HTTP/2 protocol. - Pre-defined
HeaderName
s, traits for parsing and conversion, and other header utility methods. - Various testing helpers for use in internal and app tests.
- URI component of request and response lines
- ws
ws
WebSocket protocol implementation.
Structs§
- A type map for request extensions.
- A [
ServiceFactory
] for HTTP/1.1 and HTTP/2 connections. - An HTTP service builder.
- The Request Method (VERB)
- An HTTP request.
- An HTTP response.
- An HTTP response builder.
- HTTP service configuration.
- An HTTP status code (
status-code
in RFC 7230 et al.). - TlsAcceptorConfig
openssl
orrustls-0_20
orrustls-0_21
orrustls-0_22
orrustls-0_23
Configuration options used when accepting TLS connection. - The URI component of a request.
- Represents a version of the HTTP spec.
Enums§
- Represents various types of connection
- Connection keep-alive config.
- A streaming payload.
- A major HTTP protocol version.
Traits§
- Trait that implements general purpose operations on HTTP messages.
Type Aliases§
- A boxed payload stream.