Interface IFetchResponse

Response from server

interface IFetchResponse {
    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

  • Response
    • IFetchResponse

Properties

body: ReadableStream<Uint8Array>
bodyUsed: boolean
headers: Headers

HTTP headers

ok: boolean
redirected: boolean
status: number

HTTP status code

statusText: string
type: ResponseType
url: string

Methods

  • Returns Promise<Blob>

  • Returns Response

  • Returns Promise<FormData>