@grow-codes/better-stack-logs - v0.1.1
    Preparing search index...

    Interface RequestOptions

    One HTTP call made through HttpTransport.request.

    interface RequestOptions {
        allowStatus?: readonly number[];
        body?: string | Uint8Array<ArrayBufferLike>;
        classifyError?: ErrorClassifier;
        headers?: Readonly<Record<string, string>>;
        idempotent?: boolean;
        json?: unknown;
        method?: string;
        operation?: string;
        path: string;
        query?: Readonly<Record<string, QueryValue>>;
        requestTimeoutMs?: number;
        responseType?: ResponseType;
        signal?: AbortSignal;
        totalTimeoutMs?: number;
    }
    Index
    allowStatus?: readonly number[]

    Error statuses returned to the caller instead of thrown (e.g. [404]). Their body is decoded like a success body (data; JSON that does not parse decodes to undefined instead of throwing) and the raw text is in TransportResponse.text.

    body?: string | Uint8Array<ArrayBufferLike>

    Raw body.

    classifyError?: ErrorClassifier

    Maps an HTTP error response of this call to an SDK error; runs before TransportOptions.classifyError. Return undefined to keep the next mapping.

    headers?: Readonly<Record<string, string>>

    Extra headers for this call.

    idempotent?: boolean

    Marks a non-idempotent method (e.g. POST) as safe to retry.

    json?: unknown

    JSON body (sets content-type: application/json).

    method?: string

    HTTP method (default GET).

    operation?: string

    Operation name used in error messages (default "<METHOD> <path>").

    path: string

    Path joined to the base URL (/v1/x), or an absolute URL.

    query?: Readonly<Record<string, QueryValue>>

    Query parameters (undefined/null are skipped, arrays repeat the key).

    requestTimeoutMs?: number

    Per-attempt timeout override in ms.

    responseType?: ResponseType

    Body decoding (default json; empty bodies decode to undefined).

    signal?: AbortSignal

    Caller cancellation.

    totalTimeoutMs?: number

    Whole-call timeout override in ms.