Async XHR GET with basic response header support

This commit is contained in:
Manish Goregaokar 2014-05-15 23:11:32 +05:30
parent 90a0bcfa78
commit 533fab46f9
8 changed files with 253 additions and 51 deletions

View file

@ -40,8 +40,8 @@ interface XMLHttpRequest : XMLHttpRequestEventTarget {
// request
[Throws]
void open(ByteString method, /* [EnsureUTF16] */ DOMString url);
// void open(ByteString method, /* [EnsureUTF16] */ DOMString url, boolean async, optional /* [EnsureUTF16] */ DOMString? username = null, optional /* [EnsureUTF16] */ DOMString? password = null);
[Throws]
void open(ByteString method, /* [EnsureUTF16] */ DOMString url, boolean async, optional /* [EnsureUTF16] */ DOMString? username = null, optional /* [EnsureUTF16] */ DOMString? password = null);
// void setRequestHeader(ByteString name, ByteString value);
attribute unsigned long timeout;
@ -56,7 +56,7 @@ interface XMLHttpRequest : XMLHttpRequestEventTarget {
readonly attribute unsigned short status;
readonly attribute ByteString statusText;
// ByteString? getResponseHeader(ByteString name);
// ByteString getAllResponseHeaders();
ByteString getAllResponseHeaders();
// void overrideMimeType(DOMString mime);
attribute XMLHttpRequestResponseType responseType;
readonly attribute any response;