delete method
Does a DELETE request.
Implementation
Future<HttpResponse> delete(
String path, {
Map<String, String>? headers,
bool fullPath = false,
Credential? authorization,
Map<String, String?>? parameters,
String? queryString,
Object? body,
String? contentType,
String? accept,
String? responseType,
ProgressListener? progressListener,
}) async {
var url = _buildURL(path, fullPath, parameters);
var retUrlParameters = _buildURLAndParameters(url, parameters, queryString);
url = retUrlParameters.key;
parameters = retUrlParameters.value;
var authorizationOr = _buildRequestAuthorization(authorization);
var requestAuthorization = authorizationOr is Future<Authorization?>
? await authorizationOr
: authorizationOr;
return _clientRequester.requestDELETE(
this,
url,
headers: headers,
authorization: requestAuthorization,
queryParameters: parameters,
body: body,
contentType: contentType,
accept: accept,
responseType: responseType,
progressListener: progressListener,
);
}