OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 interface XMLHttpRequestEvents extends Events { | 5 interface XMLHttpRequestEvents extends Events { |
6 EventListenerList get abort(); | 6 EventListenerList get abort(); |
7 EventListenerList get error(); | 7 EventListenerList get error(); |
8 EventListenerList get load(); | 8 EventListenerList get load(); |
9 EventListenerList get loadStart(); | 9 EventListenerList get loadStart(); |
10 EventListenerList get progress(); | 10 EventListenerList get progress(); |
(...skipping 18 matching lines...) Expand all Loading... |
29 XMLHttpRequest.getTEMPNAME(String url, onSuccess(XMLHttpRequest request)); | 29 XMLHttpRequest.getTEMPNAME(String url, onSuccess(XMLHttpRequest request)); |
30 | 30 |
31 int get readyState(); | 31 int get readyState(); |
32 | 32 |
33 String get responseText(); | 33 String get responseText(); |
34 | 34 |
35 String get responseType(); | 35 String get responseType(); |
36 | 36 |
37 void set responseType(String value); | 37 void set responseType(String value); |
38 | 38 |
39 Document get responseXML(); | 39 XMLDocument get responseXML(); |
40 | 40 |
41 int get status(); | 41 int get status(); |
42 | 42 |
43 String get statusText(); | 43 String get statusText(); |
44 | 44 |
45 XMLHttpRequestUpload get upload(); | 45 XMLHttpRequestUpload get upload(); |
46 | 46 |
47 bool get withCredentials(); | 47 bool get withCredentials(); |
48 | 48 |
49 void set withCredentials(bool value); | 49 void set withCredentials(bool value); |
50 | 50 |
51 void abort(); | 51 void abort(); |
52 | 52 |
53 String getAllResponseHeaders(); | 53 String getAllResponseHeaders(); |
54 | 54 |
55 String getResponseHeader(String header); | 55 String getResponseHeader(String header); |
56 | 56 |
57 void open(String method, String url, bool async, [String user, String password
]); | 57 void open(String method, String url, bool async, [String user, String password
]); |
58 | 58 |
59 void overrideMimeType(String mime); | 59 void overrideMimeType(String mime); |
60 | 60 |
61 void send([String data]); | 61 void send([String data]); |
62 | 62 |
63 void setRequestHeader(String header, String value); | 63 void setRequestHeader(String header, String value); |
64 | 64 |
65 XMLHttpRequestEvents get on(); | 65 XMLHttpRequestEvents get on(); |
66 } | 66 } |
OLD | NEW |