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

    Function readRateParam

    • Reads one parameter out of a RateLimit header.

      Parsed loosely on purpose. The header is an IETF draft whose spelling has moved, and implementations differ on quoting and on whether the policy name comes first, so anchoring on key=value survives a revision where anchoring on the whole grammar does not.

      Parameters

      • header: string | null
      • key: string

      Returns number | null