postUrl method

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

Opens a HTTP connection using the POST method.

The URL to use is specified in url.

See openUrl for details.

Implementation

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