Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ExtendedResponse

An extended interface of Response, since RDFlib.js adds some properties.

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

Optional error

error: undefined | string

Used in UpdateManager.updateDav

headers

headers: Headers

ok

ok: boolean

redirected

redirected: boolean

Optional req

Identifier of the reqest

Optional responseText

responseText: undefined | string

String representation of the Body

Optional size

size: undefined | number

status

status: number

statusText

statusText: string

Optional timeout

timeout: undefined | number

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>