MLE Fetch API polyfill(mle-js-fetch)
    Preparing search index...

    Class Request

    Configures the way a resource is retrieved.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    credentials: string = 'same-origin'
    duplex: "full" | "half" = 'half'
    headers: Headers = ...
    method: string = 'GET'
    signal: AbortSignal = undefined
    url: string = null

    Accessors

    • get body(): ReadableStream<Uint8Array>

      Retrieve the contents of the body.

      Returns ReadableStream<Uint8Array>

    • get bodyUsed(): boolean

      Check if the contents of the body have been consumed.

      Returns boolean

    Methods

    • Consume the body as ArrayBuffer.

      Returns Promise<ArrayBufferLike>

    • Consume the contents of the body as a Blob.

      Returns Promise<Blob>

    • Consume the contents of the body as Uint8Array.

      Returns Promise<Uint8Array>

    • Consume the contents of the body as JSON.

      Returns Promise<any>

    • Consume the contents of the body as text.

      Returns Promise<string>