Options
All
  • Public
  • Public/Protected
  • All
Menu

Export the as-fetch Fetch API that we can use with Fastly.

Hierarchy

Index

Constructors

Accessors

Methods

Constructors

constructor

  • new Body(body: null | ArrayBuffer): Body
  • The constructor for the Body class.

    Parameters

    • body: null | ArrayBuffer

      An optional array buffer to initialize the body.

    Returns Body

Accessors

bodyUsed

  • get bodyUsed(): boolean
  • Returns boolean

    A boolean representing whether the Body has been consumed already or not.

Methods

arrayBuffer

  • arrayBuffer(): null | ArrayBuffer
  • Returns null | ArrayBuffer

    an ArrayBuffer for the Body content (if it contains one).

text

  • text(): string
  • Returns string

    a string representation of the Body ArrayBuffer content.

Legend

Generated using TypeDoc