| 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 dart.io; |
| 6 |
| 5 // The close queue handles graceful closing of HTTP connections. When | 7 // The close queue handles graceful closing of HTTP connections. When |
| 6 // a connection is added to the queue it will enter a wait state | 8 // a connection is added to the queue it will enter a wait state |
| 7 // waiting for all data written and possibly socket shutdown from | 9 // waiting for all data written and possibly socket shutdown from |
| 8 // peer. | 10 // peer. |
| 9 class _CloseQueue { | 11 class _CloseQueue { |
| 10 _CloseQueue() : _q = new Set<_HttpConnectionBase>(); | 12 _CloseQueue() : _q = new Set<_HttpConnectionBase>(); |
| 11 | 13 |
| 12 void add(_HttpConnectionBase connection) { | 14 void add(_HttpConnectionBase connection) { |
| 13 void closeIfDone() { | 15 void closeIfDone() { |
| 14 // When either the client has closed or all data has been | 16 // When either the client has closed or all data has been |
| (...skipping 2309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2324 | 2326 |
| 2325 | 2327 |
| 2326 class _RedirectInfo implements RedirectInfo { | 2328 class _RedirectInfo implements RedirectInfo { |
| 2327 const _RedirectInfo(int this.statusCode, | 2329 const _RedirectInfo(int this.statusCode, |
| 2328 String this.method, | 2330 String this.method, |
| 2329 Uri this.location); | 2331 Uri this.location); |
| 2330 final int statusCode; | 2332 final int statusCode; |
| 2331 final String method; | 2333 final String method; |
| 2332 final Uri location; | 2334 final Uri location; |
| 2333 } | 2335 } |
| OLD | NEW |