Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • XHR

Index

Constructors

Properties

Methods

Constructors

constructor

  • new XHR(): XHR

Properties

Static hasSetup

hasSetup: boolean = false

Static interceptors

interceptors: Function[]

Static realOpen

realOpen: (method: string, url: string) => void

Type declaration

    • (method: string, url: string): void
    • Parameters

      • method: string
      • url: string

      Returns void

Static realSend

realSend: (body?: string | Document | Blob | ArrayBufferView | ArrayBuffer | FormData | URLSearchParams | ReadableStream<Uint8Array>) => void

Type declaration

    • (body?: string | Document | Blob | ArrayBufferView | ArrayBuffer | FormData | URLSearchParams | ReadableStream<Uint8Array>): void
    • Parameters

      • Optional body: string | Document | Blob | ArrayBufferView | ArrayBuffer | FormData | URLSearchParams | ReadableStream<Uint8Array>

      Returns void

Methods

Static add

  • add(interceptor: (request: ExtendedXMLHttpRequest, data?: string | Document | Blob | ArrayBufferView | ArrayBuffer | FormData | URLSearchParams | ReadableStream<Uint8Array>) => void): void
  • Parameters

    • interceptor: (request: ExtendedXMLHttpRequest, data?: string | Document | Blob | ArrayBufferView | ArrayBuffer | FormData | URLSearchParams | ReadableStream<Uint8Array>) => void
        • (request: ExtendedXMLHttpRequest, data?: string | Document | Blob | ArrayBufferView | ArrayBuffer | FormData | URLSearchParams | ReadableStream<Uint8Array>): void
        • Parameters

          • request: ExtendedXMLHttpRequest
          • Optional data: string | Document | Blob | ArrayBufferView | ArrayBuffer | FormData | URLSearchParams | ReadableStream<Uint8Array>

          Returns void

    Returns void

Static setup

  • setup(force?: boolean): void

Generated using TypeDoc