mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
auto merge of #2357 : Manishearth/servo/xhr-syncget, r=ms2ger
This gets a basic synchronous GET request working. I've also tried to implement a portion of the procedures mentioned in the spec. Blocks #2282
This commit is contained in:
commit
1477652295
6 changed files with 218 additions and 28 deletions
|
@ -38,7 +38,8 @@ interface XMLHttpRequest : XMLHttpRequestEventTarget {
|
|||
readonly attribute unsigned short readyState;
|
||||
|
||||
// request
|
||||
// void open(ByteString method, /* [EnsureUTF16] */ DOMString url);
|
||||
[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);
|
||||
|
||||
|
@ -46,7 +47,8 @@ interface XMLHttpRequest : XMLHttpRequestEventTarget {
|
|||
attribute unsigned long timeout;
|
||||
attribute boolean withCredentials;
|
||||
readonly attribute XMLHttpRequestUpload upload;
|
||||
// void send(optional /*(ArrayBufferView or Blob or Document or [EnsureUTF16] */ DOMString/* or FormData or URLSearchParams)*/? data = null);
|
||||
[Throws]
|
||||
void send(optional /*(ArrayBufferView or Blob or Document or [EnsureUTF16] */ DOMString/* or FormData or URLSearchParams)*/? data = null);
|
||||
// void abort();
|
||||
|
||||
// response
|
||||
|
@ -57,7 +59,7 @@ interface XMLHttpRequest : XMLHttpRequestEventTarget {
|
|||
// ByteString getAllResponseHeaders();
|
||||
// void overrideMimeType(DOMString mime);
|
||||
attribute XMLHttpRequestResponseType responseType;
|
||||
// readonly attribute any response;
|
||||
readonly attribute any response;
|
||||
readonly attribute DOMString responseText;
|
||||
[Exposed=Window] readonly attribute Document? responseXML;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue