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

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.
 

Detailed Description

This class represents argument in POST http requests.

Definition at line 19 of file HttpReqArg.h.

Constructor & Destructor Documentation

◆ HttpReqArg()

template<typename T >
TgBot::HttpReqArg::HttpReqArg ( std::string name,
const T & value,
bool isFile = false,
std::string mimeType = "text/plain",
std::string fileName = "" )
inline

Definition at line 23 of file HttpReqArg.h.

Member Data Documentation

◆ fileName

std::string TgBot::HttpReqArg::fileName

Should be set if an argument value hold some file contents.

Definition at line 51 of file HttpReqArg.h.

◆ isFile

bool TgBot::HttpReqArg::isFile = false

Should be true if an argument value hold some file contents.

Definition at line 41 of file HttpReqArg.h.

◆ mimeType

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.

◆ name

std::string TgBot::HttpReqArg::name

Name of an argument.

Definition at line 31 of file HttpReqArg.h.

◆ value

std::string TgBot::HttpReqArg::value

Value of an argument.

Definition at line 36 of file HttpReqArg.h.


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