tgbot-cpp
Loading...
Searching...
No Matches
TgBot::HttpParser Class Reference

#include <HttpParser.h>

Public Member Functions

std::string generateRequest (const Url &url, const std::vector< HttpReqArg > &args, bool isKeepAlive=false) const
 
std::string generateMultipartFormData (const std::vector< HttpReqArg > &args, const std::string &boundary) const
 
std::string generateMultipartBoundary (const std::vector< HttpReqArg > &args) const
 
std::string generateWwwFormUrlencoded (const std::vector< HttpReqArg > &args) const
 
std::string generateResponse (const std::string &data, const std::string &mimeType, unsigned short statusCode, const std::string &statusStr, bool isKeepAlive) const
 
std::unordered_map< std::string, std::string > parseHeader (const std::string &data, bool isRequest) const
 
std::string extractBody (const std::string &data) const
 

Detailed Description

Definition at line 13 of file HttpParser.h.

Member Function Documentation

◆ extractBody()

std::string TgBot::HttpParser::extractBody ( const std::string & data) const

◆ generateMultipartBoundary()

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

◆ generateMultipartFormData()

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

◆ generateRequest()

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

◆ generateResponse()

std::string TgBot::HttpParser::generateResponse ( const std::string & data,
const std::string & mimeType,
unsigned short statusCode,
const std::string & statusStr,
bool isKeepAlive ) const

◆ generateWwwFormUrlencoded()

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

◆ parseHeader()

std::unordered_map< std::string, std::string > TgBot::HttpParser::parseHeader ( const std::string & data,
bool isRequest ) const

The documentation for this class was generated from the following file: