Parse a Retry-After or X-Retry-After header value (which may be either a
delay-in-seconds number, a numeric string with an optional trailing "s" suffix
(e.g. "30s"), or an HTTP-date string) into a human-readable message.
Parameters
retryAfter: string
Raw header value
Returns string
Formatted string describing the delay (e.g. "30s" or "45s (until Thu, 01 Jan 2026 …)")
Parse a
Retry-AfterorX-Retry-Afterheader value (which may be either a delay-in-seconds number, a numeric string with an optional trailing "s" suffix (e.g. "30s"), or an HTTP-date string) into a human-readable message.