tgbot-cpp
|
This class represents argument in POST http requests. More...
#include <HttpReqArg.h>
Public Member Functions | |
template<typename T > | |
HttpReqArg (std::string name, const T &value, bool isFile=false, std::string mimeType="text/plain", std::string fileName="") | |
Public Attributes | |
std::string | name |
Name of an argument. | |
std::string | value |
Value of an argument. | |
bool | isFile = false |
Should be true if an argument value hold some file contents. | |
std::string | mimeType = "text/plain" |
Mime type of an argument value. This field makes sense only if isFile is true. | |
std::string | fileName |
Should be set if an argument value hold some file contents. | |
This class represents argument in POST http requests.
Definition at line 19 of file HttpReqArg.h.
|
inline |
Definition at line 23 of file HttpReqArg.h.
std::string TgBot::HttpReqArg::fileName |
Should be set if an argument value hold some file contents.
Definition at line 51 of file HttpReqArg.h.
bool TgBot::HttpReqArg::isFile = false |
Should be true if an argument value hold some file contents.
Definition at line 41 of file HttpReqArg.h.
std::string TgBot::HttpReqArg::mimeType = "text/plain" |
Mime type of an argument value. This field makes sense only if isFile is true.
Definition at line 46 of file HttpReqArg.h.
std::string TgBot::HttpReqArg::name |
Name of an argument.
Definition at line 31 of file HttpReqArg.h.
std::string TgBot::HttpReqArg::value |
Value of an argument.
Definition at line 36 of file HttpReqArg.h.