drupflare/worker - v1.0.0
    Preparing search index...

    Function parseAuthSpend

    • Reads a spend record back off a response, or null when the object did not report one.

      Null rather than a zeroed record: "the object did not say" and "the object said zero" lead to different decisions, and collapsing them is how a missing header reads as a fresh budget.

      Parameters

      • headers: { get(name: string): string | null }

      Returns AuthSpend | null