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 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 783 | 783 |
| 784 /** | 784 /** |
| 785 * The URI for the request (read-only). | 785 * The URI for the request (read-only). |
| 786 * | 786 * |
| 787 * This provides access to the | 787 * This provides access to the |
| 788 * path, query string, and fragment identifier for the request. | 788 * path, query string, and fragment identifier for the request. |
| 789 */ | 789 */ |
| 790 Uri get uri; | 790 Uri get uri; |
| 791 | 791 |
| 792 /** | 792 /** |
| 793 * The absolute URI for the request (read-only). | |
|
Søren Gjesse
2014/01/07 11:13:43
I like the idea of having this, but we should be s
Anders Johnsen
2014/01/07 13:59:10
Done.
| |
| 794 * | |
| 795 * This provides access to the scheme, host, port, | |
| 796 * path, query string, and fragment identifier for the request. | |
| 797 */ | |
| 798 Uri get absoluteUri; | |
| 799 | |
| 800 /** | |
| 793 * The request headers (read-only). | 801 * The request headers (read-only). |
| 794 */ | 802 */ |
| 795 HttpHeaders get headers; | 803 HttpHeaders get headers; |
| 796 | 804 |
| 797 /** | 805 /** |
| 798 * The cookies in the request, from the Cookie headers (read-only). | 806 * The cookies in the request, from the Cookie headers (read-only). |
| 799 */ | 807 */ |
| 800 List<Cookie> get cookies; | 808 List<Cookie> get cookies; |
| 801 | 809 |
| 802 /** | 810 /** |
| (...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1599 final String message; | 1607 final String message; |
| 1600 final List<RedirectInfo> redirects; | 1608 final List<RedirectInfo> redirects; |
| 1601 | 1609 |
| 1602 const RedirectException(String this.message, | 1610 const RedirectException(String this.message, |
| 1603 List<RedirectInfo> this.redirects); | 1611 List<RedirectInfo> this.redirects); |
| 1604 | 1612 |
| 1605 String toString() => "RedirectException: $message"; | 1613 String toString() => "RedirectException: $message"; |
| 1606 | 1614 |
| 1607 Uri get uri => redirects.last.location; | 1615 Uri get uri => redirects.last.location; |
| 1608 } | 1616 } |
| OLD | NEW |