16 #ifndef ALEXA_CLIENT_SDK_ACL_INCLUDE_ACL_TRANSPORT_PINGHANDLER_H_ 17 #define ALEXA_CLIENT_SDK_ACL_INCLUDE_ACL_TRANSPORT_PINGHANDLER_H_ 37 ,
public std::enable_shared_from_this<PingHandler> {
47 static std::shared_ptr<PingHandler>
create(
48 std::shared_ptr<ExchangeHandlerContextInterface> context,
50 const std::shared_ptr<avsCommon::utils::power::PowerResource>& powerResource =
nullptr);
66 std::shared_ptr<ExchangeHandlerContextInterface> context,
68 const std::shared_ptr<avsCommon::utils::power::PowerResource>& powerResource);
73 void reportPingAcknowledged();
77 std::vector<std::string> getRequestHeaderLines()
override;
83 bool onReceiveResponseCode(
long responseCode)
override;
84 bool onReceiveHeaderLine(
const std::string& line)
override;
90 bool m_wasPingAcknowledgedReported;
96 std::shared_ptr<avsCommon::utils::power::PowerResource> m_powerResource;
102 #endif // ALEXA_CLIENT_SDK_ACL_INCLUDE_ACL_TRANSPORT_PINGHANDLER_H_ ::std::string string
Definition: gtest-port.h:1097
Definition: HTTP2RequestSourceInterface.h:34
Definition: PingHandler.h:33
HTTP2ResponseFinishedStatus
Definition: HTTP2ResponseFinishedStatus.h:29
Definition: ExchangeHandler.h:31
Definition: HTTP2ResponseSinkInterface.h:33
static std::shared_ptr< PingHandler > create(std::shared_ptr< ExchangeHandlerContextInterface > context, const std::string &authToken, const std::shared_ptr< avsCommon::utils::power::PowerResource > &powerResource=nullptr)
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
Definition: HTTP2SendDataResult.h:32
HTTP2ReceiveDataStatus
Definition: HTTP2ReceiveDataStatus.h:28