AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
alexaClientSDK::avsCommon::utils::libcurlUtils::HttpPutInterface Class Referenceabstract

Minimal interface for making HTTP PUT requests. More...

#include <HttpPutInterface.h>

Inheritance diagram for alexaClientSDK::avsCommon::utils::libcurlUtils::HttpPutInterface:
Inheritance graph
[legend]

Public Member Functions

virtual ~HttpPutInterface ()=default
 Virtual destructor to assure proper cleanup of derived types. More...
 
virtual HTTPResponse doPut (const std::string &url, const std::vector< std::string > &headers, const std::string &data)=0
 

Detailed Description

Minimal interface for making HTTP PUT requests.

Constructor & Destructor Documentation

◆ ~HttpPutInterface()

virtual alexaClientSDK::avsCommon::utils::libcurlUtils::HttpPutInterface::~HttpPutInterface ( )
virtualdefault

Virtual destructor to assure proper cleanup of derived types.

Member Function Documentation

◆ doPut()

virtual HTTPResponse alexaClientSDK::avsCommon::utils::libcurlUtils::HttpPutInterface::doPut ( const std::string &  url,
const std::vector< std::string > &  headers,
const std::string &  data 
)
pure virtual

Perform an HTTP Put request returning the response body as a string. This method blocks for the duration of the request.

Parameters
urlThe URL to send the PUT to.
headersvector of strings to add in the header.
dataThe PUT data to send in the request.
Returns
An object describing the response to the PUT request.

Implemented in alexaClientSDK::avsCommon::utils::libcurlUtils::HttpPut.


The documentation for this class was generated from the following file:

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0