Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

body

body: ReadableStream | null

A simple getter used to expose a ReadableStream of the body contents.

bodyUsed

bodyUsed: boolean

Stores a Boolean that declares whether the body has been used in a response yet.

Methods

arrayBuffer

  • arrayBuffer(): Promise<ArrayBuffer>
  • Takes a Response stream and reads it to completion. It returns a promise that resolves with an ArrayBuffer.

    Returns Promise<ArrayBuffer>

blob

  • blob(): Promise<Blob>
  • Takes a Response stream and reads it to completion. It returns a promise that resolves with a Blob.

    Returns Promise<Blob>

formData

  • Takes a Response stream and reads it to completion. It returns a promise that resolves with a FormData object.

    Returns Promise<FormData>

json

  • json(): Promise<any>
  • Takes a Response stream and reads it to completion. It returns a promise that resolves with the result of parsing the body text as JSON.

    Returns Promise<any>

text

  • text(): Promise<string>
  • Takes a Response stream and reads it to completion. It returns a promise that resolves with a USVString (text).

    Returns Promise<string>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc