15 lines
310 B
C++
15 lines
310 B
C++
#ifndef A8_CURL_H
|
|
#define A8_CURL_H
|
|
|
|
namespace a8
|
|
{
|
|
namespace http
|
|
{
|
|
bool Post(const char* url, const std::string& content, std::string& response,
|
|
const char* headers = nullptr);
|
|
bool Get(const std::string& url, std::string& response, int timeout=10);
|
|
}
|
|
}
|
|
|
|
#endif
|