| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 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 | 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 part of html; | 5 part of html; |
| 6 | 6 |
| 7 class _HttpRequestUtils { | 7 class _HttpRequestUtils { |
| 8 | 8 |
| 9 // Helper for factory HttpRequest.get | 9 // Helper for factory HttpRequest.get |
| 10 static HttpRequest get(String url, | 10 static HttpRequest get(String url, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 (request.status == 200 || request.status == 0)) { | 21 (request.status == 200 || request.status == 0)) { |
| 22 onSuccess(request); | 22 onSuccess(request); |
| 23 } | 23 } |
| 24 }); | 24 }); |
| 25 | 25 |
| 26 request.send(); | 26 request.send(); |
| 27 | 27 |
| 28 return request; | 28 return request; |
| 29 } | 29 } |
| 30 } | 30 } |
| OLD | NEW |