| 123456789101112131415161718192021222324252627282930 |
- #ifndef HTTPCLIENT_H
- #define HTTPCLIENT_H
- #include "HttpRequest.h"
- #include <memory>
- #include <string>
- #include <vector>
- namespace Http {
- class HttpClientImpl;
- class HttpClient
- {
- public:
- HttpClient(int timeout = 3, bool debugLogging = false);
- ~HttpClient();
- HttpClient(const HttpClient&) = delete;
- std::string Open(const HttpRequest& request) const;
- private:
- std::unique_ptr<HttpClientImpl> m_pHttpClientImpl;
- };
- } // namespace Http
- #endif // HTTPCLIENT_H
|