summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.idl
blob: f6e25809b5da3a2fe2463cfaa8bc711ccfd57b02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
interface XMLHttpRequest : XMLHttpRequestEventTarget {

    constructor();

    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();

};