Skip to main content

parse_retry_after

Read the Retry-After hint, in whole seconds, from response headers. Both API clients surface this on RateLimitExceededError so callers can back off for as long as the server asked. Only the delay-in-seconds form is understood; the HTTP-date form (and anything else unparseable) is reported as no hint at all.