kinetex - v1.4.0
    Preparing search index...

    Function isValidIdempotencyKey

    • Validate an Idempotency-Key value.

      The header is opaque to the client, but it travels in a request header, so it must not be able to smuggle CR/LF into the request line or headers. Servers commonly cap the length (Stripe: 255 chars).

      Parameters

      • key: unknown

        Candidate value.

      • maxLength: number = 255

        Maximum accepted length. Default: 255.

      Returns boolean

      True when the value is safe to send.