| 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 io_client; | |
| 6 | |
| 7 import 'dart:async'; | 5 import 'dart:async'; |
| 8 | 6 |
| 9 import 'base_client.dart'; | 7 import 'base_client.dart'; |
| 10 import 'base_request.dart'; | 8 import 'base_request.dart'; |
| 11 import 'exception.dart'; | 9 import 'exception.dart'; |
| 12 import 'io.dart' as io; | 10 import 'io.dart' as io; |
| 13 import 'streamed_response.dart'; | 11 import 'streamed_response.dart'; |
| 14 | 12 |
| 15 /// A `dart:io`-based HTTP client. | 13 /// A `dart:io`-based HTTP client. |
| 16 /// | 14 /// |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 }); | 75 }); |
| 78 } | 76 } |
| 79 | 77 |
| 80 /// Closes the client. This terminates all active connections. If a client | 78 /// Closes the client. This terminates all active connections. If a client |
| 81 /// remains unclosed, the Dart process may not terminate. | 79 /// remains unclosed, the Dart process may not terminate. |
| 82 void close() { | 80 void close() { |
| 83 if (_inner != null) _inner.close(force: true); | 81 if (_inner != null) _inner.close(force: true); |
| 84 _inner = null; | 82 _inner = null; |
| 85 } | 83 } |
| 86 } | 84 } |
| OLD | NEW |