mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add XHR support for FormData
This commit is contained in:
parent
c420a870c1
commit
184b522230
13 changed files with 173 additions and 174 deletions
|
@ -6,7 +6,7 @@
|
|||
* https://xhr.spec.whatwg.org/#interface-formdata
|
||||
*/
|
||||
|
||||
typedef (Blob or USVString) FormDataEntryValue;
|
||||
typedef (File or USVString) FormDataEntryValue;
|
||||
|
||||
[Constructor(optional HTMLFormElement form),
|
||||
Exposed=(Window,Worker)]
|
||||
|
@ -17,6 +17,7 @@ interface FormData {
|
|||
FormDataEntryValue? get(USVString name);
|
||||
sequence<FormDataEntryValue> getAll(USVString name);
|
||||
boolean has(USVString name);
|
||||
void set(USVString name, FormDataEntryValue value);
|
||||
void set(USVString name, USVString value);
|
||||
void set(USVString name, Blob value, optional USVString filename);
|
||||
// iterable<USVString, FormDataEntryValue>;
|
||||
};
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*/
|
||||
|
||||
// https://fetch.spec.whatwg.org/#bodyinit
|
||||
typedef (Blob or /*BufferSource or FormData or */DOMString or URLSearchParams) BodyInit;
|
||||
typedef (Blob or /*BufferSource or */ FormData or DOMString or URLSearchParams) BodyInit;
|
||||
|
||||
enum XMLHttpRequestResponseType {
|
||||
"",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue