2015-11-24 07:47:29 +01:00
|
|
|
#ifndef MESSMER_CPPUTILS_NETWORK_HTTPCLIENT_H
|
|
|
|
#define MESSMER_CPPUTILS_NETWORK_HTTPCLIENT_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
|
|
|
|
namespace cpputils {
|
|
|
|
class HttpClient {
|
|
|
|
public:
|
|
|
|
virtual ~HttpClient() {}
|
|
|
|
|
2015-11-24 08:23:20 +01:00
|
|
|
virtual boost::optional<std::string> get(const std::string& url, boost::optional<long> timeoutMsec = boost::none) = 0;
|
2015-11-24 07:47:29 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|