namespace for all RestClient definitions
More...
|
| | Helpers |
| | : namespace for all helper functions
|
| |
|
|
int | init () |
| | global init function. Call this before you start any threads.
|
| |
|
void | disable () |
| | global disable function. Call this before you terminate your program.
|
| |
| Response | get (const std::string &url) |
| | HTTP GET method. More...
|
| |
| Response | post (const std::string &url, const std::string &content_type, const std::string &data) |
| | HTTP POST method. More...
|
| |
| Response | put (const std::string &url, const std::string &content_type, const std::string &data) |
| | HTTP PUT method. More...
|
| |
| Response | del (const std::string &url) |
| | HTTP DELETE method. More...
|
| |
| Response | head (const std::string &url) |
| | HTTP HEAD method. More...
|
| |
namespace for all RestClient definitions
HTTP DELETE method.
- Parameters
-
- Returns
- response struct
HTTP GET method.
public methods for the simple API. These don't allow a lot of configuration but are meant for simple HTTP calls.
- Parameters
-
- Returns
- response struct
HTTP HEAD method.
- Parameters
-
- Returns
- response struct
| RestClient::Response RestClient::post |
( |
const std::string & |
url, |
|
|
const std::string & |
ctype, |
|
|
const std::string & |
data |
|
) |
| |
HTTP POST method.
- Parameters
-
| url | to query |
| ctype | content type as string |
| data | HTTP POST body |
- Returns
- response struct
| RestClient::Response RestClient::put |
( |
const std::string & |
url, |
|
|
const std::string & |
ctype, |
|
|
const std::string & |
data |
|
) |
| |
HTTP PUT method.
- Parameters
-
| url | to query |
| ctype | content type as string |
| data | HTTP PUT body |
- Returns
- response struct