delete static method
Future<String>
delete(
- String path, {
- Map<
String, String> ? headers, - dynamic body,
- OnSuccess? onSuccess,
- OnError? onError,
- Interceptor? interceptor,
- AfterEffect? afterEffect,
Sends an HTTP DELETE request to path with optional body.
Returns the response body as a String.
Implementation
static Future<String> delete(
String path, {
Map<String, String>? headers,
dynamic body,
OnSuccess? onSuccess,
OnError? onError,
Interceptor? interceptor,
AfterEffect? afterEffect,
}) async => _request(
'DELETE',
path,
headers: headers,
body: body,
onSuccess: onSuccess,
onError: onError,
interceptor: interceptor,
afterEffect: afterEffect,
);