tgbot-cpp
Loading...
Searching...
No Matches
BoostHttpOnlySslClient.h
Go to the documentation of this file.
1
#ifndef TGBOT_BOOSTHTTPCLIENT_H
2
#define TGBOT_BOOSTHTTPCLIENT_H
3
4
#include "
tgbot/net/HttpClient.h
"
5
#include "
tgbot/net/Url.h
"
6
#include "
tgbot/net/HttpReqArg.h
"
7
#include "
tgbot/net/HttpParser.h
"
8
9
#include <boost/asio.hpp>
10
11
#include <string>
12
#include <vector>
13
14
namespace
TgBot
{
15
21
class
TGBOT_API
BoostHttpOnlySslClient
:
public
HttpClient
{
22
23
public
:
24
BoostHttpOnlySslClient
();
25
~BoostHttpOnlySslClient
()
override
;
26
33
std::string
makeRequest
(
const
Url
& url,
const
std::vector<HttpReqArg>& args)
const override
;
34
35
private
:
36
mutable
boost::asio::io_service _ioService;
37
const
HttpParser
_httpParser;
38
};
39
40
}
41
42
#endif
//TGBOT_BOOSTHTTPCLIENT_H
HttpClient.h
HttpParser.h
HttpReqArg.h
Url.h
TgBot::BoostHttpOnlySslClient
This class makes http requests via boost::asio.
Definition
BoostHttpOnlySslClient.h:21
TgBot::BoostHttpOnlySslClient::makeRequest
std::string makeRequest(const Url &url, const std::vector< HttpReqArg > &args) const override
Sends a request to the url.
TgBot::BoostHttpOnlySslClient::BoostHttpOnlySslClient
BoostHttpOnlySslClient()
TgBot::BoostHttpOnlySslClient::~BoostHttpOnlySslClient
~BoostHttpOnlySslClient() override
TgBot::HttpClient
This class makes http requests.
Definition
HttpClient.h:18
TgBot::HttpParser
Definition
HttpParser.h:13
TgBot::Url
This class parses a string with the url.
Definition
Url.h:15
TgBot
Definition
Api.h:40
include
tgbot
net
BoostHttpOnlySslClient.h
Generated on Tue Jun 11 2024 00:46:34 for tgbot-cpp by
1.11.0