| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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; | 5 part of dart.io; |
| 6 | 6 |
| 7 // The close queue handles graceful closing of HTTP connections. When | 7 // The close queue handles graceful closing of HTTP connections. When |
| 8 // 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 |
| 9 // waiting for all data written and possibly socket shutdown from | 9 // waiting for all data written and possibly socket shutdown from |
| 10 // peer. | 10 // peer. |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 return _buffer.length; | 394 return _buffer.length; |
| 395 } | 395 } |
| 396 | 396 |
| 397 List<int> _streamRead(int bytesToRead) { | 397 List<int> _streamRead(int bytesToRead) { |
| 398 return _buffer.readBytes(bytesToRead); | 398 return _buffer.readBytes(bytesToRead); |
| 399 } | 399 } |
| 400 | 400 |
| 401 int _streamReadInto(List<int> buffer, int offset, int len) { | 401 int _streamReadInto(List<int> buffer, int offset, int len) { |
| 402 List<int> data = _buffer.readBytes(len); | 402 List<int> data = _buffer.readBytes(len); |
| 403 buffer.setRange(offset, data.length, data); | 403 buffer.setRange(offset, data.length, data); |
| 404 return data.length; |
| 404 } | 405 } |
| 405 | 406 |
| 406 void _streamSetErrorHandler(callback(e)) { | 407 void _streamSetErrorHandler(callback(e)) { |
| 407 _streamErrorHandler = callback; | 408 _streamErrorHandler = callback; |
| 408 } | 409 } |
| 409 | 410 |
| 410 String _method; | 411 String _method; |
| 411 String _uri; | 412 String _uri; |
| 412 String _path; | 413 String _path; |
| 413 String _queryString; | 414 String _queryString; |
| (...skipping 1908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2322 | 2323 |
| 2323 | 2324 |
| 2324 class _RedirectInfo implements RedirectInfo { | 2325 class _RedirectInfo implements RedirectInfo { |
| 2325 const _RedirectInfo(int this.statusCode, | 2326 const _RedirectInfo(int this.statusCode, |
| 2326 String this.method, | 2327 String this.method, |
| 2327 Uri this.location); | 2328 Uri this.location); |
| 2328 final int statusCode; | 2329 final int statusCode; |
| 2329 final String method; | 2330 final String method; |
| 2330 final Uri location; | 2331 final Uri location; |
| 2331 } | 2332 } |
| OLD | NEW |