Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(416)

Side by Side Diff: sdk/lib/io/http.dart

Issue 125743002: Add HttpRequest::requestedUri. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/io/http_impl.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 requested URI for the request (read-only).
794 *
795 * The returend URI is reconstructed by using http-header fields, to access
796 * otherwise lost information, e.g. host and scheme.
797 *
798 * To reconstruct the scheme, first 'X-Forwarded-Proto' is checked, and then
799 * falling back to server type.
800 *
801 * To reconstruct the host, fisrt 'X-Forwarded-Host' is checked, then 'Host'
802 * and finally calling back to server.
803 */
804 Uri get requestedUri;
805
806 /**
793 * The request headers (read-only). 807 * The request headers (read-only).
794 */ 808 */
795 HttpHeaders get headers; 809 HttpHeaders get headers;
796 810
797 /** 811 /**
798 * The cookies in the request, from the Cookie headers (read-only). 812 * The cookies in the request, from the Cookie headers (read-only).
799 */ 813 */
800 List<Cookie> get cookies; 814 List<Cookie> get cookies;
801 815
802 /** 816 /**
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after
1599 final String message; 1613 final String message;
1600 final List<RedirectInfo> redirects; 1614 final List<RedirectInfo> redirects;
1601 1615
1602 const RedirectException(String this.message, 1616 const RedirectException(String this.message,
1603 List<RedirectInfo> this.redirects); 1617 List<RedirectInfo> this.redirects);
1604 1618
1605 String toString() => "RedirectException: $message"; 1619 String toString() => "RedirectException: $message";
1606 1620
1607 Uri get uri => redirects.last.location; 1621 Uri get uri => redirects.last.location;
1608 } 1622 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/io/http_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698