Crypto Edge
    Preparing search index...

    Function encryptEdgeResponse

    • Wrap a WHATWG Response with post-quantum hybrid streaming AEAD encryption.

      Pipes the original response body through a post-quantum encryption transform stream, updating the Content-Type header to application/octet-stream.

      Parameters

      • response: Response

        The outgoing Edge Response to encrypt.

      • recipient: EdgePqRecipientPublicKeys

        Recipient public keys and optional chunk size.

      • Optionalinit: ResponseInit

        Optional ResponseInit overrides.

      Returns Response

      A new encrypted Response.