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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sdk/lib/io/http_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/http.dart
diff --git a/sdk/lib/io/http.dart b/sdk/lib/io/http.dart
index 859803740686bae66ca75c8b87e48fcfc650ba4a..1af62c61a842d5ee929e25184aa0c04844a8e41d 100644
--- a/sdk/lib/io/http.dart
+++ b/sdk/lib/io/http.dart
@@ -790,6 +790,20 @@ abstract class HttpRequest implements Stream<List<int>> {
Uri get uri;
/**
+ * The requested URI for the request (read-only).
+ *
+ * The returend URI is reconstructed by using http-header fields, to access
+ * otherwise lost information, e.g. host and scheme.
+ *
+ * To reconstruct the scheme, first 'X-Forwarded-Proto' is checked, and then
+ * falling back to server type.
+ *
+ * To reconstruct the host, fisrt 'X-Forwarded-Host' is checked, then 'Host'
+ * and finally calling back to server.
+ */
+ Uri get requestedUri;
+
+ /**
* The request headers (read-only).
*/
HttpHeaders get headers;
« 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