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

    Function idempotent

    • Wrap a handler so that a request carrying a key it has seen gets the response it got the first time, byte for byte, and a request carrying a key that is busy or was used for something else gets a refusal.

      Wrap only the operations that require the header: a request without one is refused as missing-key, and the draft has no opinion on which operations those are. A handler that throws has the key released and the error propagated unchanged.

      The handler's response is read in full before it is answered, because the bytes are what get stored. A streaming response is delivered only once the stream has ended.

      Parameters

      Returns Handler