#include <HttpParser.h>
|
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) |
|
Definition at line 35 of file HttpParser.h.
◆ 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 Url & |
url, |
|
|
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 |
◆ parseRequest() [2/2]
std::string TgBot::HttpParser::parseRequest |
( |
const std::string & |
data | ) |
|
|
inline |
◆ parseResponse() [1/2]
std::string TgBot::HttpParser::parseResponse |
( |
const std::string & |
data, |
|
|
std::map< std::string, std::string > & |
headers |
|
) |
| |
|
inline |
◆ parseResponse() [2/2]
std::string TgBot::HttpParser::parseResponse |
( |
const std::string & |
data | ) |
|
|
inline |
The documentation for this class was generated from the following file: