![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <MockMimeResponseSink.h>
Public Member Functions | |
MockMimeResponseSink () | |
virtual | ~MockMimeResponseSink ()=default |
std::vector< char > | getMimePart (unsigned part) |
unsigned | getCountOfMimeParts () |
HTTP2MimeResponseSinkInterface methods | |
bool | onReceiveResponseCode (long responseCode) override |
bool | onReceiveHeaderLine (const std::string &line) override |
bool | onBeginMimePart (const std::multimap< std::string, std::string > &headers) override |
avsCommon::utils::http2::HTTP2ReceiveDataStatus | onReceiveMimeData (const char *bytes, size_t size) override |
bool | onEndMimePart () override |
avsCommon::utils::http2::HTTP2ReceiveDataStatus | onReceiveNonMimeData (const char *bytes, size_t size) override |
void | onResponseFinished (avsCommon::utils::http2::HTTP2ResponseFinishedStatus status) override |
![]() | |
virtual | ~HTTP2MimeResponseSinkInterface ()=default |
A mock class of HTTP2MimeResponseSinkInterface
that stores the contents of parsed of a MIME message.
alexaClientSDK::acl::test::MockMimeResponseSink::MockMimeResponseSink | ( | ) |
Constructor.
|
virtualdefault |
Destructor.
unsigned alexaClientSDK::acl::test::MockMimeResponseSink::getCountOfMimeParts | ( | ) |
Get the total number of MIME parts parsed.
std::vector< char > alexaClientSDK::acl::test::MockMimeResponseSink::getMimePart | ( | unsigned | part | ) |
Get the contents of a MIME part.
part | The index of MIME part starting from 0. |
|
overridevirtual |
Notification of the start of a new mime part.
headers | A multimap from header names to header values. |
Implements alexaClientSDK::avsCommon::utils::http2::HTTP2MimeResponseSinkInterface.
|
overridevirtual |
Notification of the end of the current mime part.
Implements alexaClientSDK::avsCommon::utils::http2::HTTP2MimeResponseSinkInterface.
|
overridevirtual |
Notification that an HTTP header line was received.
line | The HTTP response header line that was received. |
Implements alexaClientSDK::avsCommon::utils::http2::HTTP2MimeResponseSinkInterface.
|
overridevirtual |
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. |
Implements alexaClientSDK::avsCommon::utils::http2::HTTP2MimeResponseSinkInterface.
|
overridevirtual |
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. |
Implements alexaClientSDK::avsCommon::utils::http2::HTTP2MimeResponseSinkInterface.
|
overridevirtual |
Notification that an HTTP response code was returned for the request.
responseCode | The response code received for the request. |
Implements alexaClientSDK::avsCommon::utils::http2::HTTP2MimeResponseSinkInterface.
|
overridevirtual |
Notification that the request/response cycle has finished and no further notifications will be provided.
status | The status with which the response finished. |
Implements alexaClientSDK::avsCommon::utils::http2::HTTP2MimeResponseSinkInterface.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0