16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_LIBCURLUTILS_HTTPPOST_H_ 17 #define ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_LIBCURLUTILS_HTTPPOST_H_ 20 #include <curl/curl.h> 32 namespace libcurlUtils {
50 static std::unique_ptr<HttpPost>
create();
77 const std::vector<std::string> headerLines,
78 const std::vector<std::pair<std::string, std::string>>& data,
79 std::chrono::seconds timeout)
override;
83 const std::vector<std::string> headerLines,
85 std::chrono::seconds timeout)
override;
96 const std::vector<std::string> headerLines,
98 std::chrono::seconds timeout);
120 static size_t staticWriteCallbackLocked(
char* ptr,
size_t size,
size_t nmemb,
void* userdata);
131 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_LIBCURLUTILS_HTTPPOST_H_ static std::unique_ptr< HttpPostInterface > createHttpPostInterface()
Definition: CurlEasyHandleWrapper.h:63
::std::string string
Definition: gtest-port.h:1097
HttpPost & operator=(const HttpPost &rhs)=delete
Definition: HTTPResponse.h:29
long doPost(const std::string &url, const std::string &data, std::chrono::seconds timeout, std::string &body) override
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
static std::unique_ptr< HttpPost > create()
LIBCURL based implementation of HttpPostInterface.
Definition: HttpPost.h:35
Minimal interface for making Http POST requests.
Definition: HttpPostInterface.h:32