9 #ifndef INCLUDE_RESTCLIENT_CPP_RESTCLIENT_H_
10 #define INCLUDE_RESTCLIENT_CPP_RESTCLIENT_H_
12 #include <curl/curl.h>
17 #include "restclient-cpp/version.h"
53 Response get(
const std::string& url);
55 const std::string& content_type,
56 const std::string& data);
58 const std::string& content_type,
59 const std::string& data);
65 #endif // INCLUDE_RESTCLIENT_CPP_RESTCLIENT_H_
HeaderFields headers
Definition: restclient.h:41
int code
Definition: restclient.h:39
This structure represents the HTTP response data.
Definition: restclient.h:38
std::map< std::string, std::string > HeaderFields
Definition: restclient.h:27
void disable()
global disable function. Call this before you terminate your program.
Definition: restclient.cc:37
Response head(const std::string &url)
HTTP HEAD method.
Definition: restclient.cc:118
Response del(const std::string &url)
HTTP DELETE method.
Definition: restclient.cc:103
Response put(const std::string &url, const std::string &content_type, const std::string &data)
HTTP PUT method.
Definition: restclient.cc:85
Response post(const std::string &url, const std::string &content_type, const std::string &data)
HTTP POST method.
Definition: restclient.cc:65
int init()
global init function. Call this before you start any threads.
Definition: restclient.cc:24
std::string body
Definition: restclient.h:40
namespace for all RestClient definitions
Definition: connection.h:23