Skip to main content

Module h2_conn

Module h2_conn 

Source
Expand description

Async HTTP/2 connection wrapping H2Connection with a pump loop.

Uses a fire/recv pipelining pattern: fire requests synchronously, then pump the connection (recv bytes โ†’ feed H2 โ†’ dispatch events โ†’ flush sends) until a stream completes.

Structsยง

H2AsyncConn
Async HTTP/2 connection with multiplexed request support.
H2StreamingResponse
Streaming HTTP/2 response. Borrows the connection exclusively.