deleteBody method
Returns the body of the given uri
after a DELETE request. This process
is async, thus the body is returned as a future String instance.
Implementation
Future<String> deleteBody(Uri uri, {Map<String, String>? headers}) async {
final res = await deleteResponse(uri, headers: headers);
if (isErrorCode(res.statusCode)) {
throw SessionInvalidException(res.statusCode);
}
return res.body;
}