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

#include <HTTP2RequestSourceInterface.h>

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

Public Member Functions

virtual ~HTTP2RequestSourceInterface ()=default
 
virtual std::vector< std::string > getRequestHeaderLines ()=0
 
virtual HTTP2SendDataResult onSendData (char *bytes, size_t size)=0
 

Detailed Description

Interface for providing data to be sent as part of an HTTP2 request.

Constructor & Destructor Documentation

◆ ~HTTP2RequestSourceInterface()

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

Default destructor.

Member Function Documentation

◆ getRequestHeaderLines()

virtual std::vector<std::string> alexaClientSDK::avsCommon::utils::http2::HTTP2RequestSourceInterface::getRequestHeaderLines ( )
pure virtual

Get the header lines that should be output with this HTTP2 request.

Note
Calls to this method may block network operations for the associated instance of HTTP2ConnectionInterface, so they should return quickly.
Returns
The header lines that should be output with this request.

Implemented in alexaClientSDK::avsCommon::utils::http2::HTTP2MimeRequestEncoder.

◆ onSendData()

virtual HTTP2SendDataResult alexaClientSDK::avsCommon::utils::http2::HTTP2RequestSourceInterface::onSendData ( char *  bytes,
size_t  size 
)
pure virtual

Notification of the need to provide body data for an HTTP2 request.

Note
Calls to this method may block network operations for the associated instance of HTTP2ConnectionInterface, so they should return quickly.
Parameters
bytesThe buffer to receive the bytes to send.
sizeThe max number of bytes to copy.
Returns
Result indicating the disposition of the operation and number of bytes copied.
See also
HTTPSendDataResult.

Implemented in alexaClientSDK::avsCommon::utils::http2::HTTP2MimeRequestEncoder.


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