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 1519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1530 factory HttpClientDigestCredentials(String username, String password) => | 1530 factory HttpClientDigestCredentials(String username, String password) => |
1531 new _HttpClientDigestCredentials(username, password); | 1531 new _HttpClientDigestCredentials(username, password); |
1532 } | 1532 } |
1533 | 1533 |
1534 | 1534 |
1535 /** | 1535 /** |
1536 * Information about an [HttpRequest], [HttpResponse], [HttpClientRequest], or | 1536 * Information about an [HttpRequest], [HttpResponse], [HttpClientRequest], or |
1537 * [HttpClientResponse] connection. | 1537 * [HttpClientResponse] connection. |
1538 */ | 1538 */ |
1539 abstract class HttpConnectionInfo { | 1539 abstract class HttpConnectionInfo { |
1540 String get remoteHost; | 1540 InternetAddress get remoteAddress; |
1541 int get remotePort; | 1541 int get remotePort; |
1542 int get localPort; | 1542 int get localPort; |
1543 } | 1543 } |
1544 | 1544 |
1545 | 1545 |
1546 /** | 1546 /** |
1547 * Redirect information. | 1547 * Redirect information. |
1548 */ | 1548 */ |
1549 abstract class RedirectInfo { | 1549 abstract class RedirectInfo { |
1550 /** | 1550 /** |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1599 final String message; | 1599 final String message; |
1600 final List<RedirectInfo> redirects; | 1600 final List<RedirectInfo> redirects; |
1601 | 1601 |
1602 const RedirectException(String this.message, | 1602 const RedirectException(String this.message, |
1603 List<RedirectInfo> this.redirects); | 1603 List<RedirectInfo> this.redirects); |
1604 | 1604 |
1605 String toString() => "RedirectException: $message"; | 1605 String toString() => "RedirectException: $message"; |
1606 | 1606 |
1607 Uri get uri => redirects.last.location; | 1607 Uri get uri => redirects.last.location; |
1608 } | 1608 } |
OLD | NEW |