Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ResponseByXHR

Request object properties only for XMLHttpRequest.

see

https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/XMLHttpRequest

Hierarchy

Index

Properties

ajaxType

ajaxType: "xhr"

"xhr" or "fetch".

When a request is generated by XMLHttpRequest, then ajaxType is "xhr".

When a request is generated by window.fetch, then ajaxType is "fetch".

Optional body

body: "xhr" extends "xhr" ? BodyInit | null | Document | Record<string, unknown> : BodyInit | null

A request body.

BodyInit: Blob | BufferSource | FormData | URLSearchParams | ReadableStream<Uint8Array> | string

headers

headers: Record<string, string>

Optional response

response: BodyInit | null | Document | Record<string, unknown>

Optional responseText

responseText: undefined | string

responseType

responseType: XMLHttpRequestResponseType

Optional responseURL

responseURL: undefined | string

Optional responseXML

responseXML: Document | null

status

status: number

statusText

statusText: string

Generated using TypeDoc