getUrl method

  1. @override
Future<HttpClientRequest> getUrl(
  1. Uri url
)
override

Opens a HTTP connection using the GET method.

The URL to use is specified in url.

See openUrl for details.

Implementation

@override
Future<HttpClientRequest> getUrl(Uri url) async {
  Marker? marker = await _createMarker(url.toString(), 'GET');
  try {
    var request = await _httpClient.getUrl(url);
    return InstanaHttpClientRequest(request, marker);
  } catch (e) {
    _reportError(marker, e.toString());
    rethrow;
  }
}