Skip to main content

Module http2

Module http2 

Available on crate features http-backend and http and std only.
Expand description

HTTP/2 client connections.

Structs§

Builder
A builder to configure an HTTP connection.
Connection
A future that processes all HTTP state for the IO object.
H2PeerSettingsHandle
Cloneable handle for querying the peer’s initial h2 SETTINGS frame on an established connection. Obtained from Connection::peer_settings_handle; survives the connection being spawned so callers can spawn(conn) first and then await here.
SendRequest
The sender side of an established connection.
TransportEndSignal
In the extensions of an HTTP/2 client’s I/O: the scope cancelled once the connection’s transport task ends, so its cancel instant is the end of the connection itself.

Functions§

handshake
Returns a handshake future over some IO.