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 930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
941 * is not available. | 941 * is not available. |
942 */ | 942 */ |
943 HttpConnectionInfo get connectionInfo; | 943 HttpConnectionInfo get connectionInfo; |
944 } | 944 } |
945 | 945 |
946 | 946 |
947 /** | 947 /** |
948 * HTTP response for a client connection. The [HttpClientResponse] is a | 948 * HTTP response for a client connection. The [HttpClientResponse] is a |
949 * [Stream] of the body content of the response. Listen to the body to handle | 949 * [Stream] of the body content of the response. Listen to the body to handle |
950 * the data and be notified once the entire body is received. | 950 * the data and be notified once the entire body is received. |
951 | |
952 */ | 951 */ |
953 abstract class HttpClientResponse implements Stream<List<int>> { | 952 abstract class HttpClientResponse implements Stream<List<int>> { |
954 /** | 953 /** |
955 * Returns the status code. | 954 * Returns the status code. |
956 */ | 955 */ |
957 int get statusCode; | 956 int get statusCode; |
958 | 957 |
959 /** | 958 /** |
960 * Returns the reason phrase associated with the status code. | 959 * Returns the reason phrase associated with the status code. |
961 */ | 960 */ |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1125 class RedirectLimitExceededException extends RedirectException { | 1124 class RedirectLimitExceededException extends RedirectException { |
1126 const RedirectLimitExceededException(List<RedirectInfo> redirects) | 1125 const RedirectLimitExceededException(List<RedirectInfo> redirects) |
1127 : super("Redirect limit exceeded", redirects); | 1126 : super("Redirect limit exceeded", redirects); |
1128 } | 1127 } |
1129 | 1128 |
1130 | 1129 |
1131 class RedirectLoopException extends RedirectException { | 1130 class RedirectLoopException extends RedirectException { |
1132 const RedirectLoopException(List<RedirectInfo> redirects) | 1131 const RedirectLoopException(List<RedirectInfo> redirects) |
1133 : super("Redirect loop detected", redirects); | 1132 : super("Redirect loop detected", redirects); |
1134 } | 1133 } |
OLD | NEW |