mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update XHR BodyInit, update extract method impl
This commit is contained in:
parent
7f16b4e47b
commit
763b99258f
3 changed files with 36 additions and 32 deletions
|
@ -13,8 +13,8 @@
|
|||
* http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0.
|
||||
*/
|
||||
|
||||
// https://fetch.spec.whatwg.org/#fetchbodyinit
|
||||
typedef (/*ArrayBuffer or ArrayBufferView or Blob or FormData or */DOMString or URLSearchParams) FetchBodyInit;
|
||||
// https://fetch.spec.whatwg.org/#bodyinit
|
||||
typedef (Blob or /*BufferSource or FormData or */DOMString or URLSearchParams) BodyInit;
|
||||
|
||||
enum XMLHttpRequestResponseType {
|
||||
"",
|
||||
|
@ -55,7 +55,7 @@ interface XMLHttpRequest : XMLHttpRequestEventTarget {
|
|||
attribute boolean withCredentials;
|
||||
readonly attribute XMLHttpRequestUpload upload;
|
||||
[Throws]
|
||||
void send(optional /*Document or*/ FetchBodyInit? data = null);
|
||||
void send(optional /*Document or*/ BodyInit? data = null);
|
||||
void abort();
|
||||
|
||||
// response
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue