#include <HTTP2MimeRequestEncoder.h>
|
std::ostream & | operator<< (std::ostream &stream, State state) |
|
Class that adapts between HTTP2MimeRequestSourceInterface and a HTTP2RequestSourceInterface providing the encoding of discreet mime parts in to a single request stream.
◆ HTTP2MimeRequestEncoder()
alexaClientSDK::avsCommon::utils::http2::HTTP2MimeRequestEncoder::HTTP2MimeRequestEncoder |
( |
const std::string & |
boundary, |
|
|
std::shared_ptr< HTTP2MimeRequestSourceInterface > |
source |
|
) |
| |
Create an HTTP2MimeRequestEncoder.
- Parameters
-
boundary | The mime boundary to include between mime parts. |
source | Pointer to an object providing the mime parts in sequence. |
◆ ~HTTP2MimeRequestEncoder()
alexaClientSDK::avsCommon::utils::http2::HTTP2MimeRequestEncoder::~HTTP2MimeRequestEncoder |
( |
| ) |
|
|
default |
◆ getRequestHeaderLines()
std::vector<std::string> alexaClientSDK::avsCommon::utils::http2::HTTP2MimeRequestEncoder::getRequestHeaderLines |
( |
| ) |
|
|
overridevirtual |
◆ onSendData()
HTTP2SendDataResult alexaClientSDK::avsCommon::utils::http2::HTTP2MimeRequestEncoder::onSendData |
( |
char * |
bytes, |
|
|
size_t |
size |
|
) |
| |
|
overridevirtual |
Notification of the need to provide body data for an HTTP2 request.
- Note
- Calls to this method may block network operations for the associated instance of HTTP2ConnectionInterface, so they should return quickly.
- Parameters
-
bytes | The buffer to receive the bytes to send. |
size | The max number of bytes to copy. |
- Returns
- Result indicating the disposition of the operation and number of bytes copied.
- See also
- HTTPSendDataResult.
Implements alexaClientSDK::avsCommon::utils::http2::HTTP2RequestSourceInterface.
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
stream, |
|
|
State |
state |
|
) |
| |
|
friend |
The documentation for this class was generated from the following file:
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0