LIBCURL based implementation of HttpPutInterface.
More...
#include <HttpPut.h>
LIBCURL based implementation of HttpPutInterface.
◆ ~HttpPut()
alexaClientSDK::avsCommon::utils::libcurlUtils::HttpPut::~HttpPut |
( |
| ) |
|
|
default |
◆ HttpPut()
alexaClientSDK::avsCommon::utils::libcurlUtils::HttpPut::HttpPut |
( |
const HttpPut & |
rhs | ) |
|
|
delete |
Deleted copy constructor.
- Parameters
-
rhs | The 'right hand side' to not copy. |
◆ create()
static std::unique_ptr<HttpPut> alexaClientSDK::avsCommon::utils::libcurlUtils::HttpPut::create |
( |
| ) |
|
|
static |
Create a new HttpPut instance, passing ownership of the new instance on to the caller.
- Returns
- Returns an std::unique_ptr to the new HttpPut instance, or
nullptr
of the operation failed.
◆ doPut()
HTTPResponse alexaClientSDK::avsCommon::utils::libcurlUtils::HttpPut::doPut |
( |
const std::string & |
url, |
|
|
const std::vector< std::string > & |
headers, |
|
|
const std::string & |
data |
|
) |
| |
|
overridevirtual |
Perform an HTTP Put request returning the response body as a string. This method blocks for the duration of the request.
- Parameters
-
url | The URL to send the PUT to. |
headers | vector of strings to add in the header. |
data | The PUT data to send in the request. |
- Returns
- An object describing the response to the PUT request.
Implements alexaClientSDK::avsCommon::utils::libcurlUtils::HttpPutInterface.
◆ operator=()
HttpPut& alexaClientSDK::avsCommon::utils::libcurlUtils::HttpPut::operator= |
( |
const HttpPut & |
rhs | ) |
|
|
delete |
Deleted assignment operator.
- Parameters
-
rhs | The 'right hand side' to not copy. |
- Returns
- The object assigned to.
The documentation for this class was generated from the following file:
- /workplace/avs-device-sdk/AVSCommon/Utils/include/AVSCommon/Utils/LibcurlUtils/HttpPut.h
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0