delete method

Future<Response> delete (
  1. dynamic url,
  2. {Map<String, String> headers}
)
override

Implementation

Future<Response> delete(url, {Map<String, String> headers}) async {
  if (_onlyGET) {
    return _transporter.delete(url, headers: headers);
  }
  final String id = _id(Method.DELETE, url, headers, null);
  Response response = _get(id);
  if (response == null) {
    response = await _transporter.delete(url, headers: headers);
    _put(id, response);
  }
  return response;
}