nyx Typedoc
    Preparing search index...

    Interface HttpEndpointResult

    An object that holds the HTTP response to send back to Discord.

    interface HttpEndpointResult {
        body: string;
        handled: Promise<void>;
        headers: Record<string, string>;
        status: number;
    }
    Index
    body: string

    The response body, empty when there's none.

    handled: Promise<void>

    Settles once the request's handlers finish, which can be after the response is sent. Pass it to your runtime's waitUntil() on serverless platforms.

    headers: Record<string, string>
    status: number