delete method

  1. @override
Future<Response> delete({
  1. Map<String, String>? headers,
  2. Uri? uri,
})
inherited

Send a DELETE request.

If uri is given, the request will be sent to that exact uri. If uri is null, the uri on the BaseRequest will be used (and is thus required).

If headers is given, they will be merged with the set of headers already defined on the BaseRequest.

Implementation

@override
Future<Response> delete({Map<String, String>? headers, Uri? uri}) async {
  final response = await _send('DELETE', headers: headers, uri: uri);
  assert(response is Response, 'delete() should return a Response');
  return response as Response;
}