Skip to main content

Module early_data

Module early_data 

Available on crate features http and std only.
Expand description

Early-data decisions composed with ordinary request validation.

Install require_confirmed through ValidateRequestHeaderLayer::custom_fn on routes which wait for current-hop confirmation and reject inherited replay exposure. Gateways use forward_to with their origin-capability predicate. These helpers do not retry responses; original clients own 425 recovery through retry::early_data::with_recovery.

Functions§

forward_to
Forward only according to the selected origin’s early-data capability.
is_exposed
Whether the request has actual current-hop receipt or inherited exposure. Presence of a malformed field is treated conservatively as exposure.
require_confirmed
Wait for current-hop confirmation; reject inherited exposure with 425.