parseRetryAfterHeader
Callable
Parameters
optionalvalue: null | string
Returns number | null
The delay in milliseconds, or
nullif the header is absent, unparseable, or already elapsed.
The delay in milliseconds, or null if the header is absent, unparseable, or already elapsed.
Parses a
Retry-Afterresponse header into a delay in milliseconds.The header holds either a non-negative number of seconds or an HTTP-date. See MDN.