delete method

Future<TestResponse> delete(
  1. String path, {
  2. Map<String, String>? headers,
})

Makes a DELETE request to the given path.

Implementation

Future<TestResponse> delete(String path, {Map<String, String>? headers}) async {
  await _ensureStarted();
  final res = await http.delete(Uri.parse('http://localhost:$_port$path'), headers: headers);
  return TestResponse(res);
}