@ckir/corelib - v0.1.13
    Preparing search index...

    Interface SerializedResponse<T>

    Standardized structure for serialized HTTP responses.

    interface SerializedResponse<T = unknown> {
        body: string | T;
        headers: Record<string, string>;
        ok: boolean;
        redirected: boolean;
        status: number;
        statusText: string;
        type: string;
        url: string;
    }

    Type Parameters

    • T = unknown

      The expected type of the body if parsed as JSON; otherwise falls back to string.

    Index

    Properties

    body: string | T
    headers: Record<string, string>
    ok: boolean
    redirected: boolean
    status: number
    statusText: string
    type: string
    url: string