kinetex - v1.0.0-rc.1
    Preparing search index...

    Interface KinetexResponse<T>

    Parsed, typed HTTP response.

    interface KinetexResponse<T = unknown> {
        status: number;
        statusText: string;
        headers: Record<string, string>;
        data: T;
        rawBody: Uint8Array<ArrayBufferLike> | null;
        url: string;
        cached: boolean;
        redirected: boolean;
        httpVersion: HTTPVersion;
        durationMs: number;
        request: KinetexRequest;
        attempt: number;
    }

    Type Parameters

    • T = unknown

      Parsed body type

    Index

    Properties

    status: number

    HTTP status code.

    statusText: string

    HTTP status text.

    headers: Record<string, string>

    Normalized response headers (lowercase keys).

    data: T

    Parsed response body.

    rawBody: Uint8Array<ArrayBufferLike> | null

    Raw response body bytes (before parsing).

    url: string

    Final URL after redirects.

    cached: boolean

    Whether this response was served from cache.

    redirected: boolean

    Whether the request was redirected.

    httpVersion: HTTPVersion

    HTTP version used.

    durationMs: number

    Total request duration in ms.

    The originating request.

    attempt: number

    Attempt number (1 = first try, 2+ = retries).