mycocepurus-smithii - v2.0.1
    Preparing search index...

    Function readKey

    • Read Idempotency-Key off a request's headers and hand back its content.

      The draft makes the field an RFC 8941 Item whose value MUST be a String: double-quoted, printable ASCII, with \" and \\ as the only escapes. A bare token, a list, a parameter or a non-ASCII byte is invalid-key. An absent field is missing-key, which the draft says is a 400 on an operation that requires it; whether yours does is a routing decision.

      Length is not checked here. The ledger checks it against maxKeyLength.

      Parameters

      • headers: Headers

      Returns string