Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

Response

Response: { constructor: any; prototype: Response; error: any; redirect: any }

Type declaration

  • constructor: function
    • new __type(body?: BodyInit | null, init?: ResponseInit): Response
    • Parameters

      • Optional body: BodyInit | null
      • Optional init: ResponseInit

      Returns Response

  • prototype: Response
  • error: function
    • Returns Response

  • redirect: function
    • redirect(url: string, status?: undefined | number): Response
    • Parameters

      • url: string
      • Optional status: undefined | number

      Returns Response

body

body: ReadableStream<Uint8Array> | null

bodyUsed

bodyUsed: boolean

headers

headers: Headers

ok

ok: boolean

redirected

redirected: boolean

req

req: BlankNode

responseText

responseText: string

status

status: number

statusText

statusText: string

trailer

trailer: Promise<Headers>

type

type: ResponseType

url

url: string

Methods

arrayBuffer

  • arrayBuffer(): Promise<ArrayBuffer>

blob

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

clone

formData

  • formData(): Promise<FormData>
  • Returns Promise<FormData>

json

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

text

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

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc