XMLHttpRequest.idl [plain text]
enum XMLHttpRequestResponseType {
"",
"arraybuffer",
"blob",
"document",
"json",
"text"
};
[
ActiveDOMObject,
Constructor,
ConstructorCallWith=ScriptExecutionContext,
ExportMacro=WEBCORE_EXPORT,
Exposed=(Window,Worker),
JSCustomMarkFunction,
JSGenerateToJSObject,
JSGenerateToNativeObject,
PrivateIdentifier,
PublicIdentifier,
] interface XMLHttpRequest : XMLHttpRequestEventTarget {
attribute EventHandler onreadystatechange;
const unsigned short UNSENT = 0;
const unsigned short OPENED = 1;
const unsigned short HEADERS_RECEIVED = 2;
const unsigned short LOADING = 3;
const unsigned short DONE = 4;
[SetterMayThrowException] attribute unsigned long timeout;
readonly attribute unsigned short readyState;
[SetterMayThrowException] attribute boolean withCredentials;
[MayThrowException] void open(DOMString method, DOMString url);
[MayThrowException] void open(DOMString method, DOMString url, boolean async, optional DOMString? user = null, optional DOMString? password = null);
[MayThrowException] void setRequestHeader(DOMString header, DOMString value);
[Custom, MayThrowException] void send();
void abort();
readonly attribute XMLHttpRequestUpload upload;
DOMString getAllResponseHeaders();
DOMString? getResponseHeader(DOMString header);
[GetterMayThrowException, CustomGetter] readonly attribute DOMString? responseText;
[GetterMayThrowException] readonly attribute Document responseXML;
[SetterMayThrowException] attribute XMLHttpRequestResponseType responseType;
[JSBuiltin] readonly attribute Object response;
readonly attribute unsigned short status;
readonly attribute DOMString statusText;
readonly attribute DOMString responseURL;
[PrivateIdentifier] boolean responseCacheIsValid();
[PrivateIdentifier, Custom] any retrieveResponse();
[MayThrowException] void overrideMimeType(DOMString override);
};