Function del

Synopsis

#include <include/restclient-cpp/restclient.h>

Response del(const std::string &url)

Description

HTTP DELETE method.

Parameters

url - to query

Returns
response struct

Mentioned in

Source

Lines 143-154 in source/restclient.cc. Line 62 in include/restclient-cpp/restclient.h.

RestClient::Response RestClient::del(const std::string& url) {
#if __cplusplus >= 201402L
  auto conn = std::make_unique<RestClient::Connection>("");
  return conn->del(url);
#else
  RestClient::Response ret;
  RestClient::Connection *conn = new RestClient::Connection("");
  ret = conn->del(url);
  delete conn;
  return ret;
#endif
}





Add Discussion as Guest

Log in