Skip to main content

Module http

Module http 

Source
Expand description

HTTP client backend: HTTP/1.1 (smol, or pooled on tokio), opt-in HTTP/2 over plain TCP, and HTTP/3 (QUIC).

Modulesยง

h1 ๐Ÿ”’
HTTP/1.1 client.
h2 ๐Ÿ”’
HTTP/2 client over plain TCP (h2c with prior knowledge).
h3 ๐Ÿ”’
HTTP/3 client over QUIC via h3 / h3-quinn.

Structsยง

HttpClientBackend ๐Ÿ”’
HTTP client backend for JSON-RPC.
HttpConfig
HTTP settings for http:// endpoints, set with ClientBuilder::http_config.

Enumsยง

HttpTransport ๐Ÿ”’

Functionsยง

build_backend ๐Ÿ”’
Build the HTTP backend: HTTP/3 if a QUIC config is set, else HTTP/2 if enabled, else HTTP/1.1.
http_client_backend ๐Ÿ”’
parse_response ๐Ÿ”’
Shared HTTP response parser (used by h1 and h2).