![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Minimal interface for making Http POST requests. More...
#include <HttpPostInterface.h>
Public Member Functions | |
virtual | ~HttpPostInterface ()=default |
Virtual destructor to assure proper cleanup of derived types. More... | |
virtual long | doPost (const std::string &url, const std::string &data, std::chrono::seconds timeout, std::string &body)=0 |
virtual HTTPResponse | doPost (const std::string &url, const std::vector< std::string > headerLines, const std::vector< std::pair< std::string, std::string >> &data, std::chrono::seconds timeout)=0 |
virtual HTTPResponse | doPost (const std::string &url, const std::vector< std::string > headerLines, const std::string &data, std::chrono::seconds timeout)=0 |
Minimal interface for making Http POST requests.
|
virtualdefault |
Virtual destructor to assure proper cleanup of derived types.
|
pure virtual |
Perform an HTTP Post request returning the response body as a string. This method blocks for the duration of the request.
url | The URL to send the POST to. | |
data | The POST data to send in the request. | |
timeout | The maximum amount of time (in seconds) to wait for the request to complete. | |
[out] | body | A string to receive the body of the request if there is one. |
Implemented in alexaClientSDK::avsCommon::utils::libcurlUtils::HttpPost.
|
pure virtual |
Perform an HTTP Post request returning the response body as a string. This method blocks for the duration of the request.
url | The URL to send the POST to. |
headerLines | vector of strings to add as header lines. |
data | Key, value pairs describing the POST data to send in the request. This keys and values will be URL encoded by this method. |
timeout | The maximum amount of time (in seconds) to wait for the request to complete. |
Implemented in alexaClientSDK::avsCommon::utils::libcurlUtils::HttpPost.
|
pure virtual |
Perform an HTTP Post request returning the response body as a string. This method blocks for the duration of the request.
url | The URL to send the POST to. |
headerLines | vector of strings to add as header lines. |
data | A string containing the POST data to send in the request. |
timeout | The maximum amount of time (in seconds) to wait for the request to complete. |
Implemented in alexaClientSDK::avsCommon::utils::libcurlUtils::HttpPost.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0