Skip to main content

Module h3

Module h3 

Source
Expand description

HTTP/3 client over QUIC via h3 / h3-quinn.

StructsΒ§

H3Reader πŸ”’
Reads codec frames from the recv half of an HTTP/3 request stream. One read may hold part of a frame or several frames.

FunctionsΒ§

connect πŸ”’
Connect to an HTTP/3 server and return a request sender. A background task drives the connection until close.
driver_task πŸ”’
read_response πŸ”’
Wait for the response headers and split the stream into the send half and a reader for the reply.
send πŸ”’
start_request πŸ”’
Send the request headers and msg. The request body stays open.
subscribe πŸ”’
Subscribe over HTTP/3: send the request with the body left open, read the initial response, and return the send half and the reader for notifications.
subscription_task πŸ”’
Forward notifications to the subscription until the stream ends or an unsubscribe request arrives. The unsubscribe goes out on the same stream, so the server handles it with the subscription’s channel.

Type AliasesΒ§

H3RecvStream πŸ”’
H3SendRequest πŸ”’
H3SendStream πŸ”’
H3Stream πŸ”’