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.