ResponseUri property

  1. @override
Uri get ResponseUri
override
Gets the URI of the Internet resource that responded to the request, i.e. the request URI after any followed redirects.

Implementation

@override
Uri get ResponseUri {
  Uri uri = request.RequestUri!;
  for (final redirect in httpClientResponse.redirects) {
    uri = uri.resolveUri(redirect.location);
  }
  return uri;
}