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 /** | 7 /** |
8 * HTTP status codes. | 8 * HTTP status codes. |
9 */ | 9 */ |
10 abstract class HttpStatus { | 10 abstract class HttpStatus { |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 | 714 |
715 /** | 715 /** |
716 * Gets information about the client connection. Returns [null] if the socket | 716 * Gets information about the client connection. Returns [null] if the socket |
717 * is not available. | 717 * is not available. |
718 */ | 718 */ |
719 HttpConnectionInfo get connectionInfo; | 719 HttpConnectionInfo get connectionInfo; |
720 | 720 |
721 /** | 721 /** |
722 * Gets the [HttpResponse] object, used for sending back the response to the | 722 * Gets the [HttpResponse] object, used for sending back the response to the |
723 * client. | 723 * client. |
| 724 * |
| 725 * If the [contentLength] of the body isn't 0, and the body isn't being read, |
| 726 * any write calls on the [HttpResponse] will automatically drain the request |
| 727 * body. |
724 */ | 728 */ |
725 HttpResponse get response; | 729 HttpResponse get response; |
726 } | 730 } |
727 | 731 |
728 | 732 |
729 /** | 733 /** |
730 * An [HttpResponse] represents the headers and data to be returned to | 734 * An [HttpResponse] represents the headers and data to be returned to |
731 * a client in response to an HTTP request. | 735 * a client in response to an HTTP request. |
732 * | 736 * |
733 * This object has a number of properties for setting up the HTTP | 737 * This object has a number of properties for setting up the HTTP |
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1370 class RedirectLimitExceededException extends RedirectException { | 1374 class RedirectLimitExceededException extends RedirectException { |
1371 const RedirectLimitExceededException(List<RedirectInfo> redirects) | 1375 const RedirectLimitExceededException(List<RedirectInfo> redirects) |
1372 : super("Redirect limit exceeded", redirects); | 1376 : super("Redirect limit exceeded", redirects); |
1373 } | 1377 } |
1374 | 1378 |
1375 | 1379 |
1376 class RedirectLoopException extends RedirectException { | 1380 class RedirectLoopException extends RedirectException { |
1377 const RedirectLoopException(List<RedirectInfo> redirects) | 1381 const RedirectLoopException(List<RedirectInfo> redirects) |
1378 : super("Redirect loop detected", redirects); | 1382 : super("Redirect loop detected", redirects); |
1379 } | 1383 } |
OLD | NEW |