Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Response

Package version

Hierarchy

Index

Constructors

constructor

  • Parameters

    Returns Response

Properties

body

body: ReadableStream

bodyUsed

bodyUsed: boolean

headers

headers: Headers

ok

ok: boolean

redirected

redirected: boolean

size

size: number

status

status: number

statusText

statusText: string

timeout

timeout: number

type

url

url: string

Methods

arrayBuffer

  • arrayBuffer(): Promise<ArrayBuffer>
  • Returns Promise<ArrayBuffer>

blob

  • blob(): Promise<Buffer>
  • Returns Promise<Buffer>

buffer

  • buffer(): Promise<Buffer>
  • Returns Promise<Buffer>

clone

  • Returns Response

json

  • json(): Promise<any>
  • Returns Promise<any>

text

  • text(): Promise<string>
  • Returns Promise<string>

textConverted

  • textConverted(): Promise<string>
  • Returns Promise<string>

Static error

  • Returns Response

Static redirect

  • redirect(url: string, status: number): Response
  • Parameters

    • url: string
    • status: number

    Returns Response

Generated using TypeDoc