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

    Interface ReqStanza

    interface ReqStanza {
        accept: StreamAccept;
        data?: DataDescriptor;
        extensions?: Element[];
        headers: Headers;
        maxChunkSize?: number;
        method:
            | "OPTIONS"
            | "GET"
            | "HEAD"
            | "POST"
            | "PUT"
            | "DELETE"
            | "TRACE"
            | "PATCH"
            | "CONNECT";
        resource: string;
        version: string;
    }
    Index
    accept: StreamAccept

    Stream mechanisms the requester accepts for the response body.

    extensions?: Element[]

    Children in other namespaces, carried verbatim (see codec/extensions.ts).

    headers: Headers
    maxChunkSize?: number

    Decoded-byte chunk size the requester accepts, clamped to [256, 65536].

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

    The request target. Origin-form ("/index.html?x=1") is what XEP-0332 shows and what everything but a proxy sends; "*" (OPTIONS), authority-form ("example.org:443", CONNECT only) and absolute-form ("https://example.org/x") are also accepted — see docs/protocol-notes.md.

    version: string