Function options

Synopsis

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

Response options(const std::string &url)

Description

HTTP OPTIONS method.

Parameters

url - to query

Returns
response struct

Mentioned in

Source

Lines 183-189 in source/restclient.cc. Line 64 in include/restclient-cpp/restclient.h.

RestClient::Response RestClient::options(const std::string& url) {
  RestClient::Response ret;
  RestClient::Connection *conn = new RestClient::Connection("");
  ret = conn->options(url);
  delete conn;
  return ret;
}





Add Discussion as Guest

Log in