| OLD | NEW |
| (Empty) |
| 1 | |
| 2 class _XMLHttpRequestJs extends _EventTargetJs implements XMLHttpRequest native
"*XMLHttpRequest" { | |
| 3 | |
| 4 static final int DONE = 4; | |
| 5 | |
| 6 static final int HEADERS_RECEIVED = 2; | |
| 7 | |
| 8 static final int LOADING = 3; | |
| 9 | |
| 10 static final int OPENED = 1; | |
| 11 | |
| 12 static final int UNSENT = 0; | |
| 13 | |
| 14 bool asBlob; | |
| 15 | |
| 16 final int readyState; | |
| 17 | |
| 18 final Object response; | |
| 19 | |
| 20 final _BlobJs responseBlob; | |
| 21 | |
| 22 final String responseText; | |
| 23 | |
| 24 String responseType; | |
| 25 | |
| 26 final _DocumentJs responseXML; | |
| 27 | |
| 28 final int status; | |
| 29 | |
| 30 final String statusText; | |
| 31 | |
| 32 final _XMLHttpRequestUploadJs upload; | |
| 33 | |
| 34 bool withCredentials; | |
| 35 | |
| 36 void abort() native; | |
| 37 | |
| 38 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | |
| 39 | |
| 40 bool dispatchEvent(_EventJs evt) native; | |
| 41 | |
| 42 String getAllResponseHeaders() native; | |
| 43 | |
| 44 String getResponseHeader(String header) native; | |
| 45 | |
| 46 void open(String method, String url, [bool async = null, String user = null, S
tring password = null]) native; | |
| 47 | |
| 48 void overrideMimeType(String override) native; | |
| 49 | |
| 50 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | |
| 51 | |
| 52 void send([var data = null]) native; | |
| 53 | |
| 54 void setRequestHeader(String header, String value) native; | |
| 55 } | |
| OLD | NEW |