Skip to content

Function: parseRetryAfter()

ts
function parseRetryAfter(header, now?): number | undefined;

Defined in: src/core/errors/fromResponse.ts:74

Retry-After in milliseconds. The header is either delta-seconds or an HTTP date; both are accepted, and anything else is ignored rather than guessed at.

Parameters

ParameterType
headerstring | null
nownumber

Returns

number | undefined