16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_HTTP2_HTTP2MIMERESPONSEDECODER_H_ 17 #define ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_HTTP2_HTTP2MIMERESPONSEDECODER_H_ 21 #include <MultipartParser/MultipartReader.h> 59 static void partBeginCallback(
const MultipartHeaders& headers,
void* userData);
60 static void partDataCallback(
const char* buffer,
size_t size,
void* userData);
61 static void partEndCallback(
void* userData);
64 std::shared_ptr<HTTP2MimeResponseSinkInterface> m_sink;
68 MultipartReader m_multipartReader;
74 size_t m_leadingCRLFCharsLeftToRemove;
78 size_t m_lastSuccessIndex;
86 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_HTTP2_HTTP2MIMERESPONSEDECODER_H_ bool onReceiveResponseCode(long responseCode) override
Definition: HTTP2MimeResponseDecoder.h:35
::std::string string
Definition: gtest-port.h:1097
~HTTP2MimeResponseDecoder()=default
HTTP2ReceiveDataStatus onReceiveData(const char *bytes, size_t size) override
void onResponseFinished(HTTP2ResponseFinishedStatus status) override
HTTP2ResponseFinishedStatus
Definition: HTTP2ResponseFinishedStatus.h:29
Definition: HTTP2ResponseSinkInterface.h:33
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
bool onReceiveHeaderLine(const std::string &line) override
HTTP2ReceiveDataStatus
Definition: HTTP2ReceiveDataStatus.h:28
HTTP2MimeResponseDecoder(std::shared_ptr< HTTP2MimeResponseSinkInterface > sink)