requestedUri property

Uri requestedUri

The requested URI for the request.

The returned 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, first 'X-Forwarded-Host' is checked, then 'Host' and finally calling back to server.

Source

Uri get requestedUri;

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-io/HttpRequest/requestedUri.html