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