delete method

Future<StreamedResponse> delete(
  1. PathUri path
)

Deletes the resource at path.

See:

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;
}