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_parser.html | 439 +++++++++++++++++++++++++++++++++ 1 file changed, 439 insertions(+) create mode 100644 docs/class_tg_bot_1_1_http_parser.html (limited to 'docs/class_tg_bot_1_1_http_parser.html') diff --git a/docs/class_tg_bot_1_1_http_parser.html b/docs/class_tg_bot_1_1_http_parser.html new file mode 100644 index 0000000..df30979 --- /dev/null +++ b/docs/class_tg_bot_1_1_http_parser.html @@ -0,0 +1,439 @@ + + + + + + + +tgbot-cpp: TgBot::HttpParser Class Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
tgbot-cpp +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TgBot::HttpParser Class Reference
+
+
+ +

#include <HttpParser.h>

+ + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

std::string generateRequest (const Url &url, const std::vector< HttpReqArg > &args, bool isKeepAlive=false)
 
std::string generateMultipartFormData (const std::vector< HttpReqArg > &args, const std::string &bondary)
 
std::string generateMultipartBoundary (const std::vector< HttpReqArg > &args)
 
std::string generateWwwFormUrlencoded (const std::vector< HttpReqArg > &args)
 
std::string generateResponse (const std::string &data, const std::string &mimeType="text/plain", short unsigned statusCode=200, const std::string &statusStr="OK", bool isKeepAlive=false)
 
std::string parseRequest (const std::string &data, std::map< std::string, std::string > &headers)
 
std::string parseRequest (const std::string &data)
 
std::string parseResponse (const std::string &data, std::map< std::string, std::string > &headers)
 
std::string parseResponse (const std::string &data)
 
+ + + +

+Static Public Member Functions

static HttpParsergetInstance ()
 
+

Detailed Description

+
+

Definition at line 35 of file HttpParser.h.

+

Member Function Documentation

+ +

◆ generateMultipartBoundary()

+ +
+
+ + + + + + + + +
std::string TgBot::HttpParser::generateMultipartBoundary (const std::vector< HttpReqArg > & args)
+
+ +
+
+ +

◆ generateMultipartFormData()

+ +
+
+ + + + + + + + + + + + + + + + + + +
std::string TgBot::HttpParser::generateMultipartFormData (const std::vector< HttpReqArg > & args,
const std::string & bondary 
)
+
+ +
+
+ +

◆ generateRequest()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
std::string TgBot::HttpParser::generateRequest (const Urlurl,
const std::vector< HttpReqArg > & args,
bool isKeepAlive = false 
)
+
+ +
+
+ +

◆ generateResponse()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
std::string TgBot::HttpParser::generateResponse (const std::string & data,
const std::string & mimeType = "text/plain",
short unsigned statusCode = 200,
const std::string & statusStr = "OK",
bool isKeepAlive = false 
)
+
+ +
+
+ +

◆ generateWwwFormUrlencoded()

+ +
+
+ + + + + + + + +
std::string TgBot::HttpParser::generateWwwFormUrlencoded (const std::vector< HttpReqArg > & args)
+
+ +
+
+ +

◆ getInstance()

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

◆ parseRequest() [1/2]

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
std::string TgBot::HttpParser::parseRequest (const std::string & data,
std::map< std::string, std::string > & headers 
)
+
+inline
+
+ +

Definition at line 46 of file HttpParser.h.

+ +
+
+ +

◆ parseRequest() [2/2]

+ +
+
+ + + + + +
+ + + + + + + + +
std::string TgBot::HttpParser::parseRequest (const std::string & data)
+
+inline
+
+ +

Definition at line 50 of file HttpParser.h.

+ +
+
+ +

◆ parseResponse() [1/2]

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
std::string TgBot::HttpParser::parseResponse (const std::string & data,
std::map< std::string, std::string > & headers 
)
+
+inline
+
+ +

Definition at line 54 of file HttpParser.h.

+ +
+
+ +

◆ parseResponse() [2/2]

+ +
+
+ + + + + +
+ + + + + + + + +
std::string TgBot::HttpParser::parseResponse (const std::string & data)
+
+inline
+
+ +

Definition at line 58 of file HttpParser.h.

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