Sarraf API
    Preparing search index...

    Interface HttpResponse<T>

    interface HttpResponse<T = unknown> {
        data: T;
        headers: Record<string, string>;
        ok: boolean;
        status: number;
        text: string;
    }

    Type Parameters

    • T = unknown
    Index
    data: T

    Parsed JSON when the body is JSON, otherwise the raw text.

    headers: Record<string, string>
    ok: boolean
    status: number
    text: string