delete method
Deletes the resource at path
.
See:
- http://www.webdav.org/specs/rfc2518.html#METHOD_DELETE for more information.
- delete_Request for the request sent by this method.
Implementation
Future<http.StreamedResponse> delete(PathUri path) async {
final request = delete_Request(path);
final streamedResponse = await httpClient.send(request);
if (streamedResponse.statusCode != 204) {
final response = await http.Response.fromStream(streamedResponse);
throw DynamiteStatusCodeException(response);
}
return streamedResponse;
}