@labkey/api
    Preparing search index...

    Interface ExtendedXMLHttpRequest

    interface ExtendedXMLHttpRequest {
        DONE: 4;
        HEADERS_RECEIVED: 2;
        LOADING: 3;
        onabort: (this: XMLHttpRequest, ev: ProgressEvent) => any;
        onerror: (this: XMLHttpRequest, ev: ProgressEvent) => any;
        onload: (this: XMLHttpRequest, ev: ProgressEvent) => any;
        onloadend: (this: XMLHttpRequest, ev: ProgressEvent) => any;
        onloadstart: (this: XMLHttpRequest, ev: ProgressEvent) => any;
        onprogress: (this: XMLHttpRequest, ev: ProgressEvent) => any;
        onreadystatechange: (this: XMLHttpRequest, ev: Event) => any;
        ontimeout: (this: XMLHttpRequest, ev: ProgressEvent) => any;
        OPENED: 1;
        readyState: number;
        response: any;
        responseJSON: any;
        responseText: string;
        responseType: XMLHttpRequestResponseType;
        responseURL: string;
        responseXML: Document;
        status: number;
        statusText: string;
        timeout: number;
        UNSENT: 0;
        upload: XMLHttpRequestUpload;
        withCredentials: boolean;
        abort(): void;
        addEventListener<K extends keyof XMLHttpRequestEventMap>(
            type: K,
            listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any,
            options?: boolean | AddEventListenerOptions,
        ): void;
        addEventListener(
            type: string,
            listener: EventListenerOrEventListenerObject,
            options?: boolean | AddEventListenerOptions,
        ): void;
        dispatchEvent(event: Event): boolean;
        getAllResponseHeaders(): string;
        getResponseHeader(name: string): string;
        open(method: string, url: string | URL): void;
        open(
            method: string,
            url: string | URL,
            async: boolean,
            username?: string,
            password?: string,
        ): void;
        overrideMimeType(mime: string): void;
        removeEventListener<K extends keyof XMLHttpRequestEventMap>(
            type: K,
            listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any,
            options?: boolean | EventListenerOptions,
        ): void;
        removeEventListener(
            type: string,
            listener: EventListenerOrEventListenerObject,
            options?: boolean | EventListenerOptions,
        ): void;
        send(body?: Document | XMLHttpRequestBodyInit): void;
        setRequestHeader(name: string, value: string): void;
    }

    Hierarchy

    • XMLHttpRequest
      • ExtendedXMLHttpRequest
    Index

    Properties

    DONE: 4
    HEADERS_RECEIVED: 2
    LOADING: 3
    onabort: (this: XMLHttpRequest, ev: ProgressEvent) => any
    onerror: (this: XMLHttpRequest, ev: ProgressEvent) => any
    onload: (this: XMLHttpRequest, ev: ProgressEvent) => any
    onloadend: (this: XMLHttpRequest, ev: ProgressEvent) => any
    onloadstart: (this: XMLHttpRequest, ev: ProgressEvent) => any
    onprogress: (this: XMLHttpRequest, ev: ProgressEvent) => any
    onreadystatechange: (this: XMLHttpRequest, ev: Event) => any
    ontimeout: (this: XMLHttpRequest, ev: ProgressEvent) => any
    OPENED: 1
    readyState: number

    The XMLHttpRequest.readyState property returns the state an XMLHttpRequest client is in.

    MDN Reference

    response: any

    The XMLHttpRequest response property returns the response's body content as an ArrayBuffer, a Blob, a Document, a JavaScript Object, or a string, depending on the value of the request's XMLHttpRequest.responseType property.

    MDN Reference

    responseJSON: any
    responseText: string

    The read-only XMLHttpRequest property responseText returns the text received from a server following a request being sent.

    MDN Reference

    responseType: XMLHttpRequestResponseType

    The XMLHttpRequest property responseType is an enumerated string value specifying the type of data contained in the response.

    MDN Reference

    responseURL: string

    The read-only XMLHttpRequest.responseURL property returns the serialized URL of the response or the empty string if the URL is null.

    MDN Reference

    responseXML: Document

    The XMLHttpRequest.responseXML read-only property returns a Document containing the HTML or XML retrieved by the request; or null if the request was unsuccessful, has not yet been sent, or if the data can't be parsed as XML or HTML.

    MDN Reference

    status: number

    The read-only XMLHttpRequest.status property returns the numerical HTTP status code of the XMLHttpRequest's response.

    MDN Reference

    statusText: string

    The read-only XMLHttpRequest.statusText property returns a string containing the response's status message as returned by the HTTP server.

    MDN Reference

    timeout: number

    The XMLHttpRequest.timeout property is an unsigned long representing the number of milliseconds a request can take before automatically being terminated.

    MDN Reference

    UNSENT: 0
    upload: XMLHttpRequestUpload

    The XMLHttpRequest upload property returns an XMLHttpRequestUpload object that can be observed to monitor an upload's progress.

    MDN Reference

    withCredentials: boolean

    The XMLHttpRequest.withCredentials property is a boolean value that indicates whether or not cross-site Access-Control requests should be made using credentials such as cookies, authentication headers or TLS client certificates.

    MDN Reference

    Methods

    • The XMLHttpRequest.abort() method aborts the request if it has already been sent.

      MDN Reference

      Returns void

    • Type Parameters

      • K extends keyof XMLHttpRequestEventMap

      Parameters

      • type: K
      • listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any
      • Optionaloptions: boolean | AddEventListenerOptions

      Returns void

    • Parameters

      • type: string
      • listener: EventListenerOrEventListenerObject
      • Optionaloptions: boolean | AddEventListenerOptions

      Returns void

    • The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.

      MDN Reference

      Parameters

      • event: Event

      Returns boolean

    • The XMLHttpRequest method getAllResponseHeaders() returns all the response headers, separated by CRLF, as a string, or returns null if no response has been received.

      MDN Reference

      Returns string

    • The XMLHttpRequest method getResponseHeader() returns the string containing the text of a particular header's value.

      MDN Reference

      Parameters

      • name: string

      Returns string

    • The XMLHttpRequest method open() initializes a newly-created request, or re-initializes an existing one.

      MDN Reference

      Parameters

      • method: string
      • url: string | URL

      Returns void

    • Parameters

      • method: string
      • url: string | URL
      • async: boolean
      • Optionalusername: string
      • Optionalpassword: string

      Returns void

    • The XMLHttpRequest method overrideMimeType() specifies a MIME type other than the one provided by the server to be used instead when interpreting the data being transferred in a request.

      MDN Reference

      Parameters

      • mime: string

      Returns void

    • Type Parameters

      • K extends keyof XMLHttpRequestEventMap

      Parameters

      • type: K
      • listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any
      • Optionaloptions: boolean | EventListenerOptions

      Returns void

    • Parameters

      • type: string
      • listener: EventListenerOrEventListenerObject
      • Optionaloptions: boolean | EventListenerOptions

      Returns void

    • The XMLHttpRequest method send() sends the request to the server.

      MDN Reference

      Parameters

      • Optionalbody: Document | XMLHttpRequestBodyInit

      Returns void

    • The XMLHttpRequest method setRequestHeader() sets the value of an HTTP request header.

      MDN Reference

      Parameters

      • name: string
      • value: string

      Returns void