Class Request

Hierarchy

  • Body
    • Request

Implements

Constructors

  • Parameters

    Returns Request

Properties

bodyUsed: boolean
credentials: RequestCredentials
destination: RequestDestination
headers: Headers
integrity: string
keepalive: boolean
method: string
redirect: RequestRedirect
referrer: string
referrerPolicy: ReferrerPolicy
signal: AbortSignal
url: string

Methods

  • Returns a promise that resolves with an ArrayBuffer representation of the body. If the body is null, it returns an empty ArrayBuffer.

    Returns Promise<ArrayBuffer>

  • Returns a promise that resolves with a Blob representation of the body. The Blob's type will be the value of the 'content-type' header.

    Returns Promise<Blob>

  • Returns Request

  • Returns a promise that resolves with a FormData representation of the body. If the body cannot be decoded as form data, it throws a TypeError.

    Returns Promise<FormData>

  • Returns a promise that resolves with a JSON representation of the body. If the body cannot be parsed as JSON, it throws a SyntaxError.

    Returns Promise<any>

  • Returns a promise that resolves with a text representation of the body.

    Returns Promise<string>

Generated using TypeDoc