interface IXDomainRequest {
    addEventListener(type: "error", listener: ((ev: ErrorEvent) => any), useCapture?: boolean): void;
    addEventListener(type: "load" | "timeout", listener: ((ev: Event) => any), useCapture?: boolean): void;
    addEventListener(type: "progress", listener: ((ev: ProgressEvent<EventTarget>) => any), useCapture?: boolean): void;
    contentType: string;
    dispatchEvent(event: Event): boolean;
    onabort: ((this: XMLHttpRequest, ev: ProgressEvent<EventTarget>) => any);
    onerror: ((this: XMLHttpRequest, ev: ProgressEvent<EventTarget>) => any);
    onload: ((this: XMLHttpRequest, ev: ProgressEvent<EventTarget>) => any);
    onloadend: ((this: XMLHttpRequest, ev: ProgressEvent<EventTarget>) => any);
    onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent<EventTarget>) => any);
    onprogress: ((this: XMLHttpRequest, ev: ProgressEvent<EventTarget>) => any);
    ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent<EventTarget>) => any);
    open(method: string, url: string): void;
    removeEventListener<K>(type: K, listener: ((this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any), options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
    responseText: string;
    send(payload: string): void;
    timeout: number;
}

Hierarchy

  • XMLHttpRequestEventTarget
    • IXDomainRequest

Properties

contentType: string
onabort: ((this: XMLHttpRequest, ev: ProgressEvent<EventTarget>) => any)
onerror: ((this: XMLHttpRequest, ev: ProgressEvent<EventTarget>) => any)
onload: ((this: XMLHttpRequest, ev: ProgressEvent<EventTarget>) => any)
onloadend: ((this: XMLHttpRequest, ev: ProgressEvent<EventTarget>) => any)
onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent<EventTarget>) => any)
onprogress: ((this: XMLHttpRequest, ev: ProgressEvent<EventTarget>) => any)
ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent<EventTarget>) => any)
responseText: string
timeout: number

Methods

  • Parameters

    • type: "error"
    • listener: ((ev: ErrorEvent) => any)
        • (ev): any
        • Parameters

          • ev: ErrorEvent

          Returns any

    • OptionaluseCapture: boolean

    Returns void

  • Parameters

    • type: "load" | "timeout"
    • listener: ((ev: Event) => any)
        • (ev): any
        • Parameters

          • ev: Event

          Returns any

    • OptionaluseCapture: boolean

    Returns void

  • Parameters

    • type: "progress"
    • listener: ((ev: ProgressEvent<EventTarget>) => any)
        • (ev): any
        • Parameters

          • ev: ProgressEvent<EventTarget>

          Returns any

    • OptionaluseCapture: boolean

    Returns void

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    Parameters

    • event: Event

    Returns boolean

  • Removes the event listener in target's event listener list with the same type, callback, and options.

    Type Parameters

    • K extends keyof XMLHttpRequestEventTargetEventMap

    Parameters

    • type: K
    • listener: ((this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any)
        • (this, ev): any
        • Parameters

          • this: XMLHttpRequestEventTarget
          • ev: XMLHttpRequestEventTargetEventMap[K]

          Returns any

    • Optionaloptions: boolean | EventListenerOptions

    Returns void

  • Removes the event listener in target's event listener list with the same type, callback, and options.

    Parameters

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

    Returns void