delete method
Sends an HTTP DELETE request with the given headers to the given URL.
For more fine-grained control over the request, use send instead.
Implementation
@override
Future<Response> delete(Uri url,
{Map<String, dynamic>? params,
Map<String, String>? headers,
Object? body,
Encoding? encoding}) async {
Response response = await super.delete(
_fixUrl(url, params),
headers: _generateHeaders(headers),
body: body,
encoding: encoding,
);
_interceptResponse(response);
return response;
}