delete method

Future<Response> delete({
  1. required String url,
  2. Map<String, String> headers = const {},

Sends an HTTP DELETE request with the given headers to the given URL. The url should be a String. The headers should be a Map<String, String>.

This method executes and return a http.Response instance.


Future<http.Response> delete({
  required String url,
  Map<String, String> headers = const {}}) async {

  return _request(_HttpMethod.delete, url, headers, null);