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
5#include "tgbot/net/Url.h"
8
9#include <boost/asio.hpp>
10
11#include <string>
12#include <vector>
13
14namespace TgBot {
15
21class TGBOT_API BoostHttpOnlySslClient : public HttpClient {
22
23public:
26
33 std::string makeRequest(const Url& url, const std::vector<HttpReqArg>& args) const override;
34
35private:
36#if BOOST_VERSION >= 108700
37 mutable boost::asio::io_context _ioService;
38#else
39 mutable boost::asio::io_service _ioService;
40#endif
41 const HttpParser _httpParser;
42};
43
44}
45
46#endif //TGBOT_BOOSTHTTPCLIENT_H
This class makes http requests via boost::asio.
std::string makeRequest(const Url &url, const std::vector< HttpReqArg > &args) const override
Sends a request to the url.
This class makes http requests.
Definition HttpClient.h:18
This class parses a string with the url.
Definition Url.h:15
Definition Api.h:40