xmpp-httpx - v0.11.0
    Preparing search index...

    Interface HttpxServerRequest

    interface HttpxServerRequest {
        accept: StreamAcceptFlags;
        body: ReadableStream<Uint8Array<ArrayBufferLike>> | null;
        extensions: Element[];
        from: string;
        headers: Headers;
        method:
            | "OPTIONS"
            | "GET"
            | "HEAD"
            | "POST"
            | "PUT"
            | "DELETE"
            | "TRACE"
            | "PATCH"
            | "CONNECT";
        resource: string;
        to: string;
        url: string;
    }
    Index

    What the requester accepts for the response body.

    body: ReadableStream<Uint8Array<ArrayBufferLike>> | null
    extensions: Element[]

    Children of the in other namespaces, verbatim; empty when none.

    from: string

    Full JID of the requester.

    headers: Headers
    method:
        | "OPTIONS"
        | "GET"
        | "HEAD"
        | "POST"
        | "PUT"
        | "DELETE"
        | "TRACE"
        | "PATCH"
        | "CONNECT"
    resource: string

    Path + optional query as sent in .

    to: string

    JID the request was addressed to — meaningful for components.

    url: string

    Reconstructed httpx:// URL, for routing convenience. For the two forms that already name their own target — absolute-form, and CONNECT's authority-form — this is the resource verbatim instead.