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 library http.browser_client; | |
6 | |
7 import 'dart:async'; | 5 import 'dart:async'; |
8 import 'dart:html'; | 6 import 'dart:html'; |
9 | 7 |
10 import 'package:stack_trace/stack_trace.dart'; | 8 import 'package:stack_trace/stack_trace.dart'; |
11 | 9 |
12 import 'src/base_client.dart'; | 10 import 'src/base_client.dart'; |
13 import 'src/base_request.dart'; | 11 import 'src/base_request.dart'; |
14 import 'src/byte_stream.dart'; | 12 import 'src/byte_stream.dart'; |
15 import 'src/exception.dart'; | 13 import 'src/exception.dart'; |
16 import 'src/streamed_response.dart'; | 14 import 'src/streamed_response.dart'; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 93 |
96 /// Closes the client. | 94 /// Closes the client. |
97 /// | 95 /// |
98 /// This terminates all active requests. | 96 /// This terminates all active requests. |
99 void close() { | 97 void close() { |
100 for (var xhr in _xhrs) { | 98 for (var xhr in _xhrs) { |
101 xhr.abort(); | 99 xhr.abort(); |
102 } | 100 } |
103 } | 101 } |
104 } | 102 } |
OLD | NEW |