16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_HTTP2_HTTP2MIMEREQUESTENCODER_H_ 17 #define ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_HTTP2_HTTP2MIMEREQUESTENCODER_H_ 64 GETTING_1ST_PART_HEADERS,
74 GETTING_NTH_PART_HEADERS,
76 SENDING_CRLF_AFTER_BOUNDARY,
78 SENDING_TERMINATING_DASHES,
86 friend std::ostream&
operator<<(std::ostream& stream, State state);
93 void setState(State newState);
106 bool sendString(
char* bytes,
size_t size,
const std::string& text);
119 bool sendStringAndCRLF(
char* bytes,
size_t size,
const std::string& text);
138 std::shared_ptr<HTTP2MimeRequestSourceInterface> m_source;
141 size_t m_bytesCopied;
147 std::vector<std::string>::const_iterator m_headerLine;
150 size_t m_stringIndex;
158 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_HTTP2_HTTP2MIMEREQUESTENCODER_H_
HTTP2MimeRequestEncoder(const std::string &boundary, std::shared_ptr< HTTP2MimeRequestSourceInterface > source)
HTTP2SendDataResult onSendData(char *bytes, size_t size) override
::std::string string
Definition: gtest-port.h:1097
Definition: HTTP2RequestSourceInterface.h:34
Definition: HTTP2MimeRequestEncoder.h:37
~HTTP2MimeRequestEncoder()=default
std::vector< std::string > getRequestHeaderLines() override
Data not received. Abort receiving further data for this response.
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
friend std::ostream & operator<<(std::ostream &stream, State state)
Definition: HTTP2SendDataResult.h:32