Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • T = any

  • D = any

Hierarchy

  • Response

Index

Constructors

constructor

  • Type parameters

    • T = any

    • D = any

    Returns Response<T, D>

Properties

Private #headers

#headers: Record<string, string> = {}

config

config: RequestConfig<D>

data

data: T

request

request: XMLHttpRequest

status

status: number

statusText

statusText: string

Accessors

headers

  • get headers(): ResponseHeaders
  • set headers(headers: Record<string, any>): void

ok

  • get ok(): boolean

redirected

  • get redirected(): boolean

Methods

getHeader

  • getHeader(name: string): string

hasHeader

  • hasHeader(name: string): boolean

Static fromAxiosResponse

  • fromAxiosResponse<T, D>(axiosResponse: AxiosResponse<T, D>): Response<T, D>