@drupflare/workforce - v0.3.0
    Preparing search index...

    Function readRetryAfter

    • Reads Retry-After, which is either a delay in seconds or an HTTP date.

      Returns null when absent, and null is not zero: a caller that retries immediately on null turns one 429 into the thing that keeps the account locked out.

      Parameters

      • headers: Headers
      • nowMs: number

      Returns number | null