Module retry

Source

Enums§

RetryDecision
What to do with an HTTP attempt’s outcome.

Constants§

RETRY_AFTER_MAX
We never wait more than this on a server-driven Retry-After. Beyond this the client should fail open with RateLimited.

Functions§

backoff
Compute backoff for attempt index (0-based). exp 1s→2s→4s…, jitter ±20%, cap 5min.
classify
status = None indicates a network-level failure (no response).