mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:27:44 +00:00
LibWeb: Generate JS bindings for XMLHttpRequest from IDL :^)
Remove the hand-written XHR bindings in favor of generated ones.
This commit is contained in:
parent
25056830f0
commit
8363b3ae99
13 changed files with 38 additions and 431 deletions
16
Userland/Libraries/LibWeb/XHR/XMLHttpRequest.idl
Normal file
16
Userland/Libraries/LibWeb/XHR/XMLHttpRequest.idl
Normal file
|
@ -0,0 +1,16 @@
|
|||
interface XMLHttpRequest : EventTarget {
|
||||
|
||||
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;
|
||||
|
||||
readonly attribute unsigned short readyState;
|
||||
readonly attribute DOMString responseText;
|
||||
|
||||
undefined open(DOMString method, DOMString url);
|
||||
undefined setRequestHeader(DOMString name, DOMString value);
|
||||
undefined send();
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue