delete method

  1. @override
Future<HttpClientRequest> delete(
  1. String host,
  2. int port,
  3. String path
)
override

Opens a HTTP connection using the DELETE method.

The server is specified using host and port, and the path (including a possible query) is specified using path.

See open for details.

Implementation

@override
Future<HttpClientRequest> delete(String host, int port, String path) async {
  var url = Uri.parse('http://$host:$port$path');
  Marker? marker = await _createMarker(url.toString(), 'DELETE');
  try {
    var request = await _httpClient.delete(host, port, path);
    return InstanaHttpClientRequest(request, marker);
  } catch (e) {
    _reportError(marker, e.toString());
    rethrow;
  }
}