W3cubDocs

/Dart 2

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.

Implementation

Uri get requestedUri;

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