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::HttpGetInterface Class Referenceabstract

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

#include <HttpGetInterface.h>

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

Public Member Functions

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

Detailed Description

Minimal interface for making HTTP GET requests.

Constructor & Destructor Documentation

◆ ~HttpGetInterface()

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

Virtual destructor to assure proper cleanup of derived types.

Member Function Documentation

◆ doGet()

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

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

Parameters
urlThe URL to send the GET to.
headersCollection of strings to add in the header.
Returns
An object describing the response to the GET request.

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