AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <HTTP2MimeResponseDecoder.h>
Public Member Functions | |
HTTP2MimeResponseDecoder (std::shared_ptr< HTTP2MimeResponseSinkInterface > sink) | |
~HTTP2MimeResponseDecoder ()=default | |
HTTP2ResponseSinkInterface methods. | |
bool | onReceiveResponseCode (long responseCode) override |
bool | onReceiveHeaderLine (const std::string &line) override |
HTTP2ReceiveDataStatus | onReceiveData (const char *bytes, size_t size) override |
void | onResponseFinished (HTTP2ResponseFinishedStatus status) override |
Public Member Functions inherited from alexaClientSDK::avsCommon::utils::http2::HTTP2ResponseSinkInterface | |
virtual | ~HTTP2ResponseSinkInterface ()=default |
Class that adapts between HTTPResponseSinkInterface and HTTP2MimeResponseSinkInterface providing mime decoding services.
alexaClientSDK::avsCommon::utils::http2::HTTP2MimeResponseDecoder::HTTP2MimeResponseDecoder | ( | std::shared_ptr< HTTP2MimeResponseSinkInterface > | sink | ) |
Constructor.
sink | Pointer to the object to receive the mime parts. |
|
default |
Destructor.
|
overridevirtual |
Notification of receipt of 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::HTTP2ResponseSinkInterface.
|
overridevirtual |
Notification than an HTTP header line was received.
line | The HTTP response header line that was received. |
Implements alexaClientSDK::avsCommon::utils::http2::HTTP2ResponseSinkInterface.
|
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::HTTP2ResponseSinkInterface.
|
overridevirtual |
Notification that the request/response cycle has finished and no further notifications will be provided.
status | The status with which receiving the response finished. |
Implements alexaClientSDK::avsCommon::utils::http2::HTTP2ResponseSinkInterface.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0