Skip to content

parseRetryAfterMs

parseRetryAfterMs(headerValue, nowMs): number | null

Defined in: packages/client/src/retry-after.ts:8

Parse a Retry-After header (delta-seconds or HTTP-date, RFC 9110 §10.2.3) into ms, or null when absent/unreadable.

Shared by the two clients that honour it: the Event lane’s flush loop and the stream reader. Both treat it as a floor under their own backoff, never as a replacement for it.

string | null | undefined

number

number | null