OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
2 // for details. All rights reserved. Use of this source code is governed by a | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 // WARNING: Do not edit - generated code. | |
6 | |
7 interface XMLHttpRequest extends EventTarget default _XMLHttpRequestFactoryProvi
der { | |
8 | |
9 XMLHttpRequest(); | |
10 | |
11 static final int DONE = 4; | |
12 | |
13 static final int HEADERS_RECEIVED = 2; | |
14 | |
15 static final int LOADING = 3; | |
16 | |
17 static final int OPENED = 1; | |
18 | |
19 static final int UNSENT = 0; | |
20 | |
21 bool asBlob; | |
22 | |
23 final int readyState; | |
24 | |
25 final Object response; | |
26 | |
27 final Blob responseBlob; | |
28 | |
29 final String responseText; | |
30 | |
31 String responseType; | |
32 | |
33 final Document responseXML; | |
34 | |
35 final int status; | |
36 | |
37 final String statusText; | |
38 | |
39 final XMLHttpRequestUpload upload; | |
40 | |
41 bool withCredentials; | |
42 | |
43 void abort(); | |
44 | |
45 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
46 | |
47 bool dispatchEvent(Event evt); | |
48 | |
49 String getAllResponseHeaders(); | |
50 | |
51 String getResponseHeader(String header); | |
52 | |
53 void open(String method, String url, [bool async, String user, String password
]); | |
54 | |
55 void overrideMimeType(String override); | |
56 | |
57 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
58 | |
59 void send([var data]); | |
60 | |
61 void setRequestHeader(String header, String value); | |
62 } | |
OLD | NEW |