Crate actix_http[][src]

Expand description

HTTP primitives for the Actix ecosystem.

Crate Features

opensslTLS support via OpenSSL.
rustlsTLS support via rustls.
compress-brotliPayload compression support: Brotli.
compress-gzipPayload compression support: Deflate, Gzip.
compress-zstdPayload compression support: Zstd.
trust-dnsUse trust-dns as the client DNS resolver.


pub use self::error::Error;


Traits and structures to aid consuming and writing HTTP payloads.

HTTP client.

Content-Encoding support.

Error and Result module

HTTP/1 protocol implementation.

HTTP/2 protocol.

Pre-defined HeaderNames, traits for parsing and conversion, and other header utility methods.

Various HTTP related types.

Various testing helpers for use in internal and app tests.

URI component of request and response lines

WebSocket protocol implementation.


A type map for request extensions.

A ServiceFactory for HTTP/1.1 or HTTP/2 protocol.

A 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.).

The URI component of a request.

Represents a version of the HTTP spec.


Represents various types of connection

Represents a supported content encoding.

Server keep-alive setting

Type represent streaming payload

A major HTTP protocol version.


Trait that implements general purpose operations on HTTP messages.

Type Definitions

Type represent boxed payload