@videosdk.live/server-sdk
    Preparing search index...

    Interface RequestOptions

    interface RequestOptions {
        body?: unknown;
        expect?: "json" | "text" | "none";
        headers?: Record<string, string>;
        maxRetries?: number;
        query?: QueryParams;
        rawBody?: boolean;
        signal?: AbortSignal;
        timeoutMs?: number;
    }
    Index
    body?: unknown

    Request body. Serialized as JSON unless RequestOptions.rawBody is set.

    expect?: "json" | "text" | "none"

    How to interpret the response body. Defaults to "json".

    headers?: Record<string, string>

    Extra request headers.

    maxRetries?: number

    Per-request retry override.

    query?: QueryParams

    Query-string parameters. undefined/null values are omitted; arrays are joined with commas.

    rawBody?: boolean

    When true, body is sent verbatim (e.g. SDP text) and not JSON-encoded.

    signal?: AbortSignal

    Caller-supplied abort signal.

    timeoutMs?: number

    Per-request timeout override (ms).