a8/a8/curl.h
2019-01-12 14:29:46 +08:00

15 lines
361 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,
a8::XObject* headers = nullptr, int timeout = 10);
bool Get(const std::string& url, std::string& response, a8::XObject* headers = nullptr, int timeout=10);
}
}
#endif