#include <MockHTTP2MimeResponseDecodeSink.h>
◆ MockHTTP2MimeResponseDecodeSink()
alexaClientSDK::avsCommon::utils::http2::MockHTTP2MimeResponseDecodeSink::MockHTTP2MimeResponseDecodeSink |
( |
| ) |
|
Constructor to provide the HTTP headers and data to be passed onto the decoder
◆ ~MockHTTP2MimeResponseDecodeSink()
alexaClientSDK::avsCommon::utils::http2::MockHTTP2MimeResponseDecodeSink::~MockHTTP2MimeResponseDecodeSink |
( |
| ) |
|
|
default |
◆ hasSameContentAs()
Helper method to compare data with source
- Parameters
-
source | RequestSource used to generate the original encoded message |
- Returns
- true if data is same
◆ onBeginMimePart()
bool alexaClientSDK::avsCommon::utils::http2::MockHTTP2MimeResponseDecodeSink::onBeginMimePart |
( |
const std::multimap< std::string, std::string > & |
headers | ) |
|
|
overridevirtual |
◆ onEndMimePart()
bool alexaClientSDK::avsCommon::utils::http2::MockHTTP2MimeResponseDecodeSink::onEndMimePart |
( |
| ) |
|
|
overridevirtual |
◆ onReceiveHeaderLine()
bool alexaClientSDK::avsCommon::utils::http2::MockHTTP2MimeResponseDecodeSink::onReceiveHeaderLine |
( |
const std::string & |
line | ) |
|
|
overridevirtual |
◆ onReceiveMimeData()
HTTP2ReceiveDataStatus alexaClientSDK::avsCommon::utils::http2::MockHTTP2MimeResponseDecodeSink::onReceiveMimeData |
( |
const char * |
bytes, |
|
|
size_t |
size |
|
) |
| |
|
overridevirtual |
◆ onReceiveNonMimeData()
HTTP2ReceiveDataStatus alexaClientSDK::avsCommon::utils::http2::MockHTTP2MimeResponseDecodeSink::onReceiveNonMimeData |
( |
const char * |
bytes, |
|
|
size_t |
size |
|
) |
| |
|
overridevirtual |
◆ onReceiveResponseCode()
bool alexaClientSDK::avsCommon::utils::http2::MockHTTP2MimeResponseDecodeSink::onReceiveResponseCode |
( |
long |
responseCode | ) |
|
|
overridevirtual |
◆ onResponseFinished()
◆ m_abort
bool alexaClientSDK::avsCommon::utils::http2::MockHTTP2MimeResponseDecodeSink::m_abort {false} |
◆ m_data
std::vector<std::string> alexaClientSDK::avsCommon::utils::http2::MockHTTP2MimeResponseDecodeSink::m_data |
MIME data parts received.
These will be kept public to help testing
◆ m_headers
std::vector<std::multimap<std::string, std::string> > alexaClientSDK::avsCommon::utils::http2::MockHTTP2MimeResponseDecodeSink::m_headers |
MIME headers received for every part.
◆ m_index
size_t alexaClientSDK::avsCommon::utils::http2::MockHTTP2MimeResponseDecodeSink::m_index {0} |
◆ m_nonMimeData
std::string alexaClientSDK::avsCommon::utils::http2::MockHTTP2MimeResponseDecodeSink::m_nonMimeData |
◆ m_pauseCount
size_t alexaClientSDK::avsCommon::utils::http2::MockHTTP2MimeResponseDecodeSink::m_pauseCount {0} |
◆ m_slowSink
bool alexaClientSDK::avsCommon::utils::http2::MockHTTP2MimeResponseDecodeSink::m_slowSink {false} |
enable sending PAUSE intermittently
The documentation for this class was generated from the following files:
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0