@hpke/ohttp
    Preparing search index...

    Interface OhttpClientParams

    Explicit primitives and wire encoding for an OHTTP client.

    interface OhttpClientParams {
        aead: AeadInterface;
        encoding: OhttpEncoding;
        kdf: KdfInterface;
        kem: KemInterface;
        keyConfig: Uint8Array<ArrayBufferLike> | OhttpKeyConfig;
        relayUrl?: string | URL;
        streamingUpload?: boolean;
    }
    Index
    aead: AeadInterface

    AEAD primitive supplied by the application.

    encoding: OhttpEncoding

    Wire encoding supported by the gateway.

    kdf: KdfInterface

    KDF primitive supplied by the application.

    kem: KemInterface

    KEM primitive supplied by the application.

    keyConfig: Uint8Array<ArrayBufferLike> | OhttpKeyConfig

    Gateway key configurations as application/ohttp-keys bytes, or one parsed configuration.

    relayUrl?: string | URL

    Required by ohttpFetch; optional for low-level use.

    streamingUpload?: boolean

    Opt into streaming relay uploads. Defaults to false for HTTP/1.1/browser compatibility. Decrypted responses still stream when the encoding supports it.