Skip to main content

permit_attempt

Function permit_attempt 

pub fn permit_attempt(request: Request<RetryBody>) -> Request<RetryBody>
Available on crate features http and std only.
Expand description

Grant early admission to an eligible attempt inside its owning Retry layer.

Use with rama_core::layer::MapInput inside Retry, above connection selection, and pair it with with_recovery. The attempt must already have forked extensions. A forwarded, confirmed and unmarked input never gains early exposure merely because its gateway enabled early sending.