Interface Response

    This Fetch API interface represents the response to a request.

    MDN Reference

    interface Response {
        body: ReadableStream<Uint8Array>;
        bodyUsed: boolean;
        headers: Headers;
        ok: boolean;
        redirected: boolean;
        status: number;
        statusText: string;
        type: ResponseType;
        url: string;
        arrayBuffer(): Promise<ArrayBuffer>;
        blob(): Promise<Blob>;
        clone(): Response;
        formData(): Promise<FormData>;
        json(): Promise<any>;
        text(): Promise<string>;
    }
    Hierarchy

    Properties

    bodyUsed: boolean
    headers: Headers
    ok: boolean
    redirected: boolean
    status: number
    statusText: string
    url: string

    Methods