Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Response<T>

The Gobits response object

Type parameters

  • T = any

Hierarchy

  • Response

Index

Constructors

constructor

Properties

body

body: null | T

The body of the response

headers

headers: Headers

The response headers

status

status: number

The status code of the response

Accessors

isCompleted

  • get isCompleted(): boolean
  • True if the response already passed the Completed state

    Returns boolean

isResponded

  • get isResponded(): boolean
  • True if the response already passed the Responded state

    Returns boolean

native

  • get native(): null | Response
  • The original response object of Fetch API

    Returns null | Response

ok

  • get ok(): boolean
  • True if the status code is in the 2xx range

    Returns boolean

redirected

  • get redirected(): boolean
  • True if the request was redirected

    Returns boolean

Methods

markAsCompleted

  • markAsCompleted(): void

markAsResponded

  • markAsResponded(): void

Generated using TypeDoc