From b22c20c4db8c35eaee99075d055f74697c5805b8 Mon Sep 17 00:00:00 2001 From: Oleg Morozenkov Date: Sun, 15 Jan 2017 02:33:59 +0300 Subject: Docs --- docs/de/d0d/class_tg_bot_1_1_http_parser.html | 439 ++++++++++++++++++++++++++ docs/de/d0d/class_tg_bot_1_1_http_parser.js | 12 + 2 files changed, 451 insertions(+) create mode 100644 docs/de/d0d/class_tg_bot_1_1_http_parser.html create mode 100644 docs/de/d0d/class_tg_bot_1_1_http_parser.js (limited to 'docs/de/d0d') diff --git a/docs/de/d0d/class_tg_bot_1_1_http_parser.html b/docs/de/d0d/class_tg_bot_1_1_http_parser.html new file mode 100644 index 0000000..c8fbcef --- /dev/null +++ b/docs/de/d0d/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: +
+
+ + + + diff --git a/docs/de/d0d/class_tg_bot_1_1_http_parser.js b/docs/de/d0d/class_tg_bot_1_1_http_parser.js new file mode 100644 index 0000000..8bb8e59 --- /dev/null +++ b/docs/de/d0d/class_tg_bot_1_1_http_parser.js @@ -0,0 +1,12 @@ +var class_tg_bot_1_1_http_parser = +[ + [ "generateMultipartBoundary", "de/d0d/class_tg_bot_1_1_http_parser.html#a1950d2edd050dd933a3a06f1292ac671", null ], + [ "generateMultipartFormData", "de/d0d/class_tg_bot_1_1_http_parser.html#aec7201adbe2d835925716cceeddf9074", null ], + [ "generateRequest", "de/d0d/class_tg_bot_1_1_http_parser.html#a182538da4def93b40fdd6ac9398944f6", null ], + [ "generateResponse", "de/d0d/class_tg_bot_1_1_http_parser.html#a9ca6a48bea33e6258f550cb8eff11996", null ], + [ "generateWwwFormUrlencoded", "de/d0d/class_tg_bot_1_1_http_parser.html#af32ca4f29ff9bf6ebcde3b8eaf7f6eb4", null ], + [ "parseRequest", "de/d0d/class_tg_bot_1_1_http_parser.html#acb35df8dadb12af1c4526d7bfbe0310d", null ], + [ "parseRequest", "de/d0d/class_tg_bot_1_1_http_parser.html#a1d079d6433fa19dde0c1d45e95f1078d", null ], + [ "parseResponse", "de/d0d/class_tg_bot_1_1_http_parser.html#a90bf3fc79f65796c6cc04a45f7f40487", null ], + [ "parseResponse", "de/d0d/class_tg_bot_1_1_http_parser.html#a2b1741c0cd99ca9fb09786bcdb9d2aeb", null ] +]; \ No newline at end of file -- cgit v1.2.3