Setu-TS
    Preparing search index...

    Interface ClientIdempotencyOptions

    Client-level idempotency configuration (M109b §3.8).

    0.9.0

    interface ClientIdempotencyOptions {
        generateKey?: () => string;
        header?: string;
        methods?: readonly string[];
    }
    Index
    generateKey?: () => string

    Mints a key. Default: 32 hex characters from 16 crypto.getRandomValues bytes. Its OUTPUT is validated on every call like a caller's key.

    header?: string

    The header a key is sent under. An HTTP token. Default 'Idempotency-Key'.

    methods?: readonly string[]

    Methods a generated key is set on. 1–16 HTTP tokens, upper-cased. Default ['POST', 'PATCH'].