XMLHttpRequest
Module: JavaScript DOM API
#include <XMLHttpRequest.idl>
Inherits from XMLHttpRequestEventTarget, EventTarget
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| XMLHttpRequest | XMLHttpRequest() |
| void | open(DOMString method, DOMString url, optional boolean async, optional DOMString username, optional DOMString password) |
| void | setRequestHeader(DOMString name, DOMString value) |
| void | send(optional DOMString? data) |
| void | abort() |
| DOMString | getResponseHeader(DOMString name) |
| DOMString | getAllResponseHeaders() |
| void | overrideMimeType(DOMString mime) |
| ArrayBuffer | responseArrayBuffer() |
| Blob | responseBlob() |
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| const unsigned short | UNSENT |
| const unsigned short | OPENED |
| const unsigned short | HEADERS_RECEIVED |
| const unsigned short | LOADING |
| const unsigned short | DONE |
| readonly attribute unsigned short | readyState |
| attribute unsigned long | timeout |
| attribute boolean | withCredentials |
| readonly attribute USVString | responseURL |
| readonly attribute unsigned short | status |
| readonly attribute ByteString | statusText |
| attribute DOMString | responseType |
| readonly attribute DOMString | responseText |
| readonly attribute any | response |
| attribute EventSetter | readystatechange |
| attribute EventSetter | loadstart |
| attribute EventSetter | progress |
| attribute EventSetter | abort |
| attribute EventSetter | error |
| attribute EventSetter | load |
| attribute EventSetter | timeout |
| attribute EventSetter | loadend |
Additional inherited members
Section titled “Additional inherited members”Public Functions inherited from EventTarget
| Name | |
|---|---|
| void | addEventListener(DOMInternedString type, EventListener listener, optional AddEventListenerOptions options) |
| void | removeEventListener(DOMInternedString type, EventListener listener, optional RemoveEventListenerOptions options) |
| boolean | dispatchEvent(Event event) |
Public Functions Documentation
Section titled “Public Functions Documentation”function XMLHttpRequest
Section titled “function XMLHttpRequest”XMLHttpRequest XMLHttpRequest()function open
Section titled “function open”void open( DOMString method, DOMString url, optional boolean async, optional DOMString username, optional DOMString password)function setRequestHeader
Section titled “function setRequestHeader”void setRequestHeader( DOMString name, DOMString value)function send
Section titled “function send”void send( optional DOMString? data)function abort
Section titled “function abort”void abort()function getResponseHeader
Section titled “function getResponseHeader”DOMString getResponseHeader( DOMString name)function getAllResponseHeaders
Section titled “function getAllResponseHeaders”DOMString getAllResponseHeaders()function overrideMimeType
Section titled “function overrideMimeType”void overrideMimeType( DOMString mime)function responseArrayBuffer
Section titled “function responseArrayBuffer”ArrayBuffer responseArrayBuffer()function responseBlob
Section titled “function responseBlob”Blob responseBlob()Public Attributes Documentation
Section titled “Public Attributes Documentation”variable UNSENT
Section titled “variable UNSENT”const unsigned short UNSENT = 0;variable OPENED
Section titled “variable OPENED”const unsigned short OPENED = 1;variable HEADERS_RECEIVED
Section titled “variable HEADERS_RECEIVED”const unsigned short HEADERS_RECEIVED = 2;variable LOADING
Section titled “variable LOADING”const unsigned short LOADING = 3;variable DONE
Section titled “variable DONE”const unsigned short DONE = 4;variable readyState
Section titled “variable readyState”readonly attribute unsigned short readyState;variable timeout
Section titled “variable timeout”attribute unsigned long timeout;variable withCredentials
Section titled “variable withCredentials”attribute boolean withCredentials;variable responseURL
Section titled “variable responseURL”readonly attribute USVString responseURL;variable status
Section titled “variable status”readonly attribute unsigned short status;variable statusText
Section titled “variable statusText”readonly attribute ByteString statusText;variable responseType
Section titled “variable responseType”attribute DOMString responseType;variable responseText
Section titled “variable responseText”readonly attribute DOMString responseText;variable response
Section titled “variable response”readonly attribute any response;variable readystatechange
Section titled “variable readystatechange”attribute EventSetter readystatechange;variable loadstart
Section titled “variable loadstart”attribute EventSetter loadstart;variable progress
Section titled “variable progress”attribute EventSetter progress;variable abort
Section titled “variable abort”attribute EventSetter abort;variable error
Section titled “variable error”attribute EventSetter error;variable load
Section titled “variable load”attribute EventSetter load;variable timeout
Section titled “variable timeout”attribute EventSetter timeout;variable loadend
Section titled “variable loadend”attribute EventSetter loadend;© 2026 Coherent Labs. All rights reserved.