@aracna/core - v1.5.0
    Preparing search index...

    Class FetchResponse<T>

    The FetchResponse class is used for responses that are returned by the Fetch class.

    Aracna Reference

    Type Parameters

    • T = unknown

    Hierarchy (View Summary)

    Implements

    • Response
    Index

    Constructors

    Properties

    body: ReadableStream<Uint8Array<ArrayBuffer>> | null
    bodyUsed: boolean
    data: T

    The data that has been parsed.

    headers: Headers
    ok: boolean
    redirected: boolean
    response: Response
    status: number
    statusText: string
    type: ResponseType
    url: string

    Accessors

    Methods

    • Decodes the body in the most appropriate way inferring the type from the content-type header. Optionally the type can be specified, it can be array-buffer, blob, form-data, json, text or url-search-params.

      Parameters

      Returns Promise<void>