tgbot-cpp
Loading...
Searching...
No Matches
CurlHttpClient.h
Go to the documentation of this file.
1#ifndef TGBOT_CURLHTTPCLIENT_H
2#define TGBOT_CURLHTTPCLIENT_H
3
4#ifdef HAVE_CURL
5
7#include "tgbot/net/Url.h"
10
11#include <curl/curl.h>
12
13#include <string>
14#include <vector>
15
16namespace TgBot {
17
23class TGBOT_API CurlHttpClient : public HttpClient {
24
25public:
27 ~CurlHttpClient() override;
28
35 std::string makeRequest(const Url& url, const std::vector<HttpReqArg>& args) const override;
36
41
42private:
43 const HttpParser _httpParser;
44};
45
46}
47
48#endif
49
50#endif //TGBOT_CURLHTTPCLIENT_H
This class makes http requests via libcurl.
CURL * curlSettings
Raw curl settings storage for fine tuning.
std::string makeRequest(const Url &url, const std::vector< HttpReqArg > &args) const override
Sends a request to the url.
~CurlHttpClient() override
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