2 #include "nlohmann/json.hpp" 10 friend size_t read_callback(
void *ptr,
size_t size,
size_t nmemb,
void *userp);
13 Client(
const std::string &base);
14 void set_auth(
const std::string &user,
const std::string &passwd);
16 json get(
const std::string &url);
17 json post(
const std::string &url,
const json &postdata =
json());
22 const std::string base_url;
24 curl_slist *header_list =
nullptr;
25 char errbuf[CURL_ERROR_SIZE];
32 const char *readptr =
nullptr;
35 PostBuffer post_buffer;
Definition: rest_client.hpp:9
a class to store JSON values
Definition: json.hpp:161
Definition: rest_client.cpp:8
basic_json<> json
default JSON class
Definition: json_fwd.hpp:61