nyx Typedoc
    Preparing search index...

    Interface HttpEndpointRequest

    An object that holds the parts of a signed request from Discord that a handler needs.

    interface HttpEndpointRequest {
        body: string | Uint8Array<ArrayBufferLike>;
        raw?: unknown;
        signature: string | null | undefined;
        timestamp: string | null | undefined;
    }
    Index
    body: string | Uint8Array<ArrayBufferLike>

    The raw, unparsed body, needed for signature verification.

    raw?: unknown

    The original request object from the server or runtime (e.g. a fetch Request or a node:http IncomingMessage), to read anything else from it, like headers.

    signature: string | null | undefined

    The X-Signature-Ed25519 header.

    timestamp: string | null | undefined

    The X-Signature-Timestamp header.