![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <HTTP2MimeResponseSinkInterface.h>
Public Member Functions | |
virtual | ~HTTP2MimeResponseSinkInterface ()=default |
virtual bool | onReceiveResponseCode (long responseCode)=0 |
virtual bool | onReceiveHeaderLine (const std::string &line)=0 |
virtual bool | onBeginMimePart (const std::multimap< std::string, std::string > &headers)=0 |
virtual HTTP2ReceiveDataStatus | onReceiveMimeData (const char *bytes, size_t size)=0 |
virtual bool | onEndMimePart ()=0 |
virtual HTTP2ReceiveDataStatus | onReceiveNonMimeData (const char *bytes, size_t size)=0 |
virtual void | onResponseFinished (HTTP2ResponseFinishedStatus status)=0 |
Interface for receiving a mime encoded HTTP2 response.
Mock class which implements the to allow testing
|
virtualdefault |
Default destructor.
|
pure virtual |
Notification of the start of a new mime part.
headers | A multimap from header names to header values. |
Implemented in alexaClientSDK::acl::MimeResponseSink, alexaClientSDK::acl::test::MockMimeResponseSink, and alexaClientSDK::avsCommon::utils::http2::MockHTTP2MimeResponseDecodeSink.
|
pure virtual |
Notification of the end of the current mime part.
Implemented in alexaClientSDK::acl::MimeResponseSink, alexaClientSDK::acl::test::MockMimeResponseSink, and alexaClientSDK::avsCommon::utils::http2::MockHTTP2MimeResponseDecodeSink.
|
pure virtual |
Notification that an HTTP header line was received.
line | The HTTP response header line that was received. |
Implemented in alexaClientSDK::acl::MimeResponseSink, alexaClientSDK::acl::test::MockMimeResponseSink, and alexaClientSDK::avsCommon::utils::http2::MockHTTP2MimeResponseDecodeSink.
|
pure virtual |
Notification of new body data received from an HTTP2 response.
bytes | The buffer containing the bytes to consume. |
size | The number of bytes to consume. |
Implemented in alexaClientSDK::acl::MimeResponseSink, alexaClientSDK::acl::test::MockMimeResponseSink, and alexaClientSDK::avsCommon::utils::http2::MockHTTP2MimeResponseDecodeSink.
|
pure virtual |
Notification of receipt of non-mime body data in an HTTP2 response.
bytes | The buffer containing the bytes to consume. |
size | The number of bytes to consume. |
Implemented in alexaClientSDK::acl::MimeResponseSink, alexaClientSDK::acl::test::MockMimeResponseSink, and alexaClientSDK::avsCommon::utils::http2::MockHTTP2MimeResponseDecodeSink.
|
pure virtual |
Notification that an HTTP response code was returned for the request.
responseCode | The response code received for the request. |
Implemented in alexaClientSDK::acl::MimeResponseSink, alexaClientSDK::acl::test::MockMimeResponseSink, and alexaClientSDK::avsCommon::utils::http2::MockHTTP2MimeResponseDecodeSink.
|
pure virtual |
Notification that the request/response cycle has finished and no further notifications will be provided.
status | The status with which the response finished. |
Implemented in alexaClientSDK::acl::MimeResponseSink, alexaClientSDK::acl::test::MockMimeResponseSink, and alexaClientSDK::avsCommon::utils::http2::MockHTTP2MimeResponseDecodeSink.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0