Skip to main content

Module early_data

Module early_data 

Available on crate features http and std only.
Expand description

Early-data transmission facts and rejection errors. HTTP facts used by early-data recovery policies.

These extensions do not depend on the Retry layer. A custom client service can grant an attempt-local EarlyDataPermit, retain a replayable request, and inspect EarlyDataAttempt or EarlyDataRejected after sending. Recover at most once, with ForbidEarlyData retained for subsequent attempts. Only original requests with actual early-send evidence may recover HTTP 425; gateways pass that response back to its original owner.

Custom servers and gateways can inspect EarlyDataReceived and await its confirmation without any retry middleware. Inherited Early-Data exposure remains independent of the current connection’s handshake.

Structs§

EarlyDataAttempt
Transport evidence that this request was actually sent with TLS early keys.
EarlyDataReceived
Transport evidence that this request contained bytes received with early keys.
EarlyDataRejected
TLS rejected the early stream carrying this particular HTTP request.