delete method

Future<HttpResponse> delete(
  1. String path, {
  2. Map<String, String>? headers,
  3. bool fullPath = false,
  4. Credential? authorization,
  5. Map<String, String?>? parameters,
  6. String? queryString,
  7. Object? body,
  8. String? contentType,
  9. String? accept,
  10. String? responseType,
  11. ProgressListener? progressListener,
})

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 requestAuthorization = await _buildRequestAuthorization(authorization);
  return _clientRequester.requestDELETE(this, url,
      headers: headers,
      authorization: requestAuthorization,
      queryParameters: parameters,
      body: body,
      contentType: contentType,
      accept: accept,
      responseType: responseType,
      progressListener: progressListener);
}