Skip to main content

Module early_data

Module early_data 

Available on crate features http and std only.
Expand description

Compose one confirmed early-data recovery with an application retry rule.

Install this inside one Retry owner, outside the client and its connection selection. A 425 or typed TLS early rejection is always handled here, even when ineligible; it never falls through to an application rule that retries every status or error. Other results keep the application rule’s normal behavior and limits, including after a confirmed recovery.

Functions§

is_early_data_rejected
Recognize a per-request TLS early rejection through contextual error wrappers.
permit_attempt
Grant early admission to an eligible attempt inside its owning Retry layer.
prepare_bodyless
Prepare only safe, truly empty requests for automatic early-data recovery.
with_recovery
Handle 425 and typed TLS early rejection before an application’s retry rule.