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

  • The constructor for an HTTP Request.

    Parameters

    • url: string

      The url for where the Request should be sent.

    • init: RequestInit

      The Request configuration object.

    Returns Request

Accessors

bodyUsed

  • get bodyUsed(): boolean
  • Returns boolean

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

headers

  • Get the Request headers.

    Returns Headers

    A Headers object of the HTTP Request headers, for the Request.

method

  • get method(): string
  • Get the Request method.

    Returns string

    A string representation of the HTTP request method.

url

  • get url(): string
  • Get the Request URL.

    Returns string

    A string representation of the HTTP Request URL.

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