Chromium Code Reviews| 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 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1275 /** | 1275 /** |
| 1276 * Represents credentials for basic authentication. | 1276 * Represents credentials for basic authentication. |
| 1277 */ | 1277 */ |
| 1278 abstract class HttpClientBasicCredentials extends HttpClientCredentials { | 1278 abstract class HttpClientBasicCredentials extends HttpClientCredentials { |
| 1279 factory HttpClientBasicCredentials(String username, String password) => | 1279 factory HttpClientBasicCredentials(String username, String password) => |
| 1280 new _HttpClientBasicCredentials(username, password); | 1280 new _HttpClientBasicCredentials(username, password); |
| 1281 } | 1281 } |
| 1282 | 1282 |
| 1283 | 1283 |
| 1284 /** | 1284 /** |
| 1285 * Represents credentials for digest authentication. | 1285 * Represents credentials for digest authentication. Digest |
| 1286 * authentication is only supported for servers using the MD5 | |
| 1287 * algorithm and and quality of protection (qop) of either "none" or | |
|
Anders Johnsen
2013/05/02 19:10:19
Double and.
Anders Johnsen
2013/05/02 19:10:19
QoP?
Søren Gjesse
2013/05/03 08:10:36
rfc2617 uses all lowercase.
| |
| 1288 * "auth". | |
| 1286 */ | 1289 */ |
| 1287 abstract class HttpClientDigestCredentials extends HttpClientCredentials { | 1290 abstract class HttpClientDigestCredentials extends HttpClientCredentials { |
| 1288 factory HttpClientDigestCredentials(String username, String password) => | 1291 factory HttpClientDigestCredentials(String username, String password) => |
| 1289 new _HttpClientDigestCredentials(username, password); | 1292 new _HttpClientDigestCredentials(username, password); |
| 1290 } | 1293 } |
| 1291 | 1294 |
| 1292 | 1295 |
| 1293 /** | 1296 /** |
| 1294 * Information about an [HttpRequest], [HttpResponse], [HttpClientRequest], or | 1297 * Information about an [HttpRequest], [HttpResponse], [HttpClientRequest], or |
| 1295 * [HttpClientResponse] connection. | 1298 * [HttpClientResponse] connection. |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1352 class RedirectLimitExceededException extends RedirectException { | 1355 class RedirectLimitExceededException extends RedirectException { |
| 1353 const RedirectLimitExceededException(List<RedirectInfo> redirects) | 1356 const RedirectLimitExceededException(List<RedirectInfo> redirects) |
| 1354 : super("Redirect limit exceeded", redirects); | 1357 : super("Redirect limit exceeded", redirects); |
| 1355 } | 1358 } |
| 1356 | 1359 |
| 1357 | 1360 |
| 1358 class RedirectLoopException extends RedirectException { | 1361 class RedirectLoopException extends RedirectException { |
| 1359 const RedirectLoopException(List<RedirectInfo> redirects) | 1362 const RedirectLoopException(List<RedirectInfo> redirects) |
| 1360 : super("Redirect loop detected", redirects); | 1363 : super("Redirect loop detected", redirects); |
| 1361 } | 1364 } |
| OLD | NEW |