delete method

Future<bool> delete(
  1. String url,
  2. Map<String, String> headers
)

Implementation

Future<bool> delete(String url, Map<String, String> headers) async {
  http.Response response = await http.delete(url, headers: headers);
  int code = response.statusCode;
  if (code != 200) {
    print('rest.dart: delete: $url: Non 200 response: $code');
    return false;
  }
  return true;
}