Skip to content

retryAfterFromHeaders

function retryAfterFromHeaders(headers, now?): number | undefined;

Defined in: core/src/transport.ts:81

How long the provider says to wait, read from the RESPONSE rather than from a thrown error. Headers are authoritative: Retry-After first, then the vendor reset headers that name a subscription window rather than a per-minute throttle, because “try again in a moment” is a lie for those.

Parameter Type
headers Headers
now number

number | undefined