Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FetchResponse

Represents a response to an HTTP request

Hierarchy

  • FetchResponse

Index

Properties

Methods

Properties

ok

ok: boolean

True if the request was successful (status in range 200-299)

status

status: number

HTTP status code

url

url: string

The URL that was used for the request

Methods

json

  • json(): object
  • Return the response as a JSON object

    Returns object

text

  • text(): string
  • Return the response content as plain text

    Returns string