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::http2::HTTP2ConnectionInterface Class Referenceabstract

#include <HTTP2ConnectionInterface.h>

Inheritance diagram for alexaClientSDK::avsCommon::utils::http2::HTTP2ConnectionInterface:
Inheritance graph
[legend]

Public Member Functions

virtual ~HTTP2ConnectionInterface ()=default
 
virtual std::shared_ptr< HTTP2RequestInterfacecreateAndSendRequest (const HTTP2RequestConfig &config)=0
 
virtual void disconnect ()=0
 
virtual void addObserver (std::shared_ptr< HTTP2ConnectionObserverInterface > observer)=0
 
virtual void removeObserver (std::shared_ptr< HTTP2ConnectionObserverInterface > observer)=0
 

Detailed Description

Interface for managing an HTTP2 connection.

Constructor & Destructor Documentation

◆ ~HTTP2ConnectionInterface()

virtual alexaClientSDK::avsCommon::utils::http2::HTTP2ConnectionInterface::~HTTP2ConnectionInterface ( )
virtualdefault

Destructor.

Member Function Documentation

◆ addObserver()

virtual void alexaClientSDK::avsCommon::utils::http2::HTTP2ConnectionInterface::addObserver ( std::shared_ptr< HTTP2ConnectionObserverInterface observer)
pure virtual

Add a new connection observer object.

Parameters
observerObject to be notified of any registration event.

◆ createAndSendRequest()

virtual std::shared_ptr<HTTP2RequestInterface> alexaClientSDK::avsCommon::utils::http2::HTTP2ConnectionInterface::createAndSendRequest ( const HTTP2RequestConfig config)
pure virtual

Create an HTTP2 request. Send it immediately.

Parameters
configThe configuration object which defines the request.
Returns
A new HTTP2GetRequest instance.

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

◆ disconnect()

virtual void alexaClientSDK::avsCommon::utils::http2::HTTP2ConnectionInterface::disconnect ( )
pure virtual

Terminate the HTTP2 connection, forcing immediate termination of any active requests.

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

◆ removeObserver()

virtual void alexaClientSDK::avsCommon::utils::http2::HTTP2ConnectionInterface::removeObserver ( std::shared_ptr< HTTP2ConnectionObserverInterface observer)
pure virtual

Remove the given observer object.

Parameters
observerObject to be removed from observers set.

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