From d03eda27cdbe75470068d7513ecf510d8d342cf5 Mon Sep 17 00:00:00 2001 From: Oleg Morozenkov Date: Sun, 15 Jan 2017 02:46:48 +0300 Subject: Docs --- docs/class_tg_bot_1_1_http_client.html | 178 +++++++++++++++++++++++++++++++++ 1 file changed, 178 insertions(+) create mode 100644 docs/class_tg_bot_1_1_http_client.html (limited to 'docs/class_tg_bot_1_1_http_client.html') diff --git a/docs/class_tg_bot_1_1_http_client.html b/docs/class_tg_bot_1_1_http_client.html new file mode 100644 index 0000000..8aa2a05 --- /dev/null +++ b/docs/class_tg_bot_1_1_http_client.html @@ -0,0 +1,178 @@ + + + + + + + +tgbot-cpp: TgBot::HttpClient Class Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TgBot::HttpClient Class Reference
+
+
+ +

#include <HttpClient.h>

+ + + + +

+Public Member Functions

std::string makeRequest (const Url &url, const std::vector< HttpReqArg > &args)
 
+ + + +

+Static Public Member Functions

static HttpClientgetInstance ()
 
+

Detailed Description

+

This class makes http requests.

+ +

Definition at line 40 of file HttpClient.h.

+

Member Function Documentation

+ +

◆ getInstance()

+ +
+
+ + + + + +
+ + + + + + + +
static HttpClient& TgBot::HttpClient::getInstance ()
+
+static
+
+

Returns instance which lives during all application lifetime.

+ +
+
+ +

◆ makeRequest()

+ +
+
+ + + + + + + + + + + + + + + + + + +
std::string TgBot::HttpClient::makeRequest (const Urlurl,
const std::vector< HttpReqArg > & args 
)
+
+

Sends a request to the url. If there's no args specified, a GET request will be sent, otherwise a POST request will be sent. If at least 1 arg is marked as file, the content type of a request will be multipart/form-data, otherwise it will be application/x-www-form-urlencoded.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + -- cgit v1.2.3