23 #ifndef TGBOT_HTTPPARAMETER_H 24 #define TGBOT_HTTPPARAMETER_H 30 #include <boost/lexical_cast.hpp> 77 #endif //TGBOT_HTTPPARAMETER_H std::string name
Name of an argument.
std::string value
Value of an argument.
std::string fileName
Should be set if an argument value hold some file contents.
bool isFile
Should be true if an argument value hold some file contents.
This class represents argument in POST http requests.
HttpReqArg(const std::string &name, const T &value, bool isFile=false, const std::string &mimeType="text/plain", const std::string &fileName="")
std::string mimeType
Mime type of an argument value. This field makes sense only if isFile is true.