31 lines
471 B
C++
31 lines
471 B
C++
#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
|