![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <LibcurlHTTP2Request.h>
Public Member Functions | |
LibcurlHTTP2Request (const alexaClientSDK::avsCommon::utils::http2::HTTP2RequestConfig &config, const std::shared_ptr< LibcurlSetCurlOptionsCallbackInterface > &setCurlOptionsCallback, std::string id="") | |
CURL * | getCurlHandle () |
void | reportCompletion (http2::HTTP2ResponseFinishedStatus status) |
void | reportResponseCode () |
bool | hasProgressTimedOut () const |
bool | isIntermittentTransferExpected () const |
void | setTimeOfLastTransfer () |
void | unPause () |
bool | isPaused () const |
bool | isCancelled () const |
HTTP2RequestInterface methods. | |
bool | cancel () override |
std::string | getId () const override |
![]() | |
virtual | ~HTTP2RequestInterface ()=default |
alexaClientSDK::avsCommon::utils::libcurlUtils::LibcurlHTTP2Request::LibcurlHTTP2Request | ( | const alexaClientSDK::avsCommon::utils::http2::HTTP2RequestConfig & | config, |
const std::shared_ptr< LibcurlSetCurlOptionsCallbackInterface > & | setCurlOptionsCallback, | ||
std::string | id = "" |
||
) |
Constructor.
config | The HTTP2RequestConfig used for this request. |
setCurlOptionsCallback | The LibcurlSetCurlOptionsCallbackInterface to set curl options when creating http2 conenction. |
id | Name used to identify this request. |
|
overridevirtual |
Cancel this HTTP2Request
.
Implements alexaClientSDK::avsCommon::utils::http2::HTTP2RequestInterface.
CURL* alexaClientSDK::avsCommon::utils::libcurlUtils::LibcurlHTTP2Request::getCurlHandle | ( | ) |
Gets the CURL easy handle associated with this stream
|
overridevirtual |
Get an integer uniquely identifying this request.
Implements alexaClientSDK::avsCommon::utils::http2::HTTP2RequestInterface.
bool alexaClientSDK::avsCommon::utils::libcurlUtils::LibcurlHTTP2Request::hasProgressTimedOut | ( | ) | const |
Return whether or not the activity timeout has been reached.
bool alexaClientSDK::avsCommon::utils::libcurlUtils::LibcurlHTTP2Request::isCancelled | ( | ) | const |
Return whether this request has been cancelled.
bool alexaClientSDK::avsCommon::utils::libcurlUtils::LibcurlHTTP2Request::isIntermittentTransferExpected | ( | ) | const |
Whether this request expects that transfer will happen intermittently.
bool alexaClientSDK::avsCommon::utils::libcurlUtils::LibcurlHTTP2Request::isPaused | ( | ) | const |
Return whether this stream has pending transfers.
void alexaClientSDK::avsCommon::utils::libcurlUtils::LibcurlHTTP2Request::reportCompletion | ( | http2::HTTP2ResponseFinishedStatus | status | ) |
Notify the HTTP2ResponseSinkInterface that the transfer is complete with the appropriate HTTP2ResponseFinishedStatus code.
status | The finished status to report. |
void alexaClientSDK::avsCommon::utils::libcurlUtils::LibcurlHTTP2Request::reportResponseCode | ( | ) |
If the response code has been received and not previously reported, notify the HTTP2ResponseSinkInterface that the response code has been received.
|
inline |
Sets the time of last transfer to the current time.
void alexaClientSDK::avsCommon::utils::libcurlUtils::LibcurlHTTP2Request::unPause | ( | ) |
Un-pause read and write for this request.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0