delete abstract method

Future<RequestResponse<OriginalResponse>> delete(
  1. Uri url, {
  2. Map<String, String>? headers,
  3. Object? body,
  4. Encoding? encoding,
  5. Object? options,
})

Sends an HTTP DELETE request to remove a resource.

  • url: The target URI.
  • headers: Optional HTTP headers.
  • body: Optional payload (some APIs require a body for deletion).
  • encoding: The encoding to use for the body.
  • options: Extra configuration specific to the underlying client implementation.

Implementation

Future<RequestResponse<OriginalResponse>> delete(
  Uri url, {
  Map<String, String>? headers,
  Object? body,
  Encoding? encoding,
  Object? options,
});