a8/a8/curl.h
2018-11-20 20:32:56 +08:00

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