AWS IoT Device SDK C++ v2
1.34.0
AWS IoT Device SDK C++ v2
|
Go to the documentation of this file.
11 struct aws_http_header;
12 struct aws_http_message;
21 class MqttConnectionCore;
25 class Mqtt5ClientCore;
47 std::shared_ptr<Aws::Crt::Io::InputStream> GetBody() const noexcept;
54 bool SetBody(const
std::shared_ptr<
Aws::Crt::Io::
IStream> &body) noexcept;
61 bool SetBody(const
std::shared_ptr<
Aws::Crt::Io::InputStream> &body) noexcept;
67 size_t GetHeaderCount() const noexcept;
81 bool AddHeader(const
HttpHeader &header) noexcept;
88 bool EraseHeader(
size_t index) noexcept;
93 operator
bool() const noexcept {
return m_message !=
nullptr; }
96 struct aws_http_message *GetUnderlyingMessage() const noexcept {
return m_message; }
99 HttpMessage(
Allocator *allocator,
struct aws_http_message *message) noexcept;
111 friend class Mqtt::MqttConnectionCore;
112 friend class Mqtt5::Mqtt5ClientCore;
157 bool SetResponseCode(
int response) noexcept;
std::shared_ptr< Aws::Crt::Io::InputStream > m_bodyStream
Definition: HttpRequestResponse.h:103
HttpMessage & operator=(HttpMessage &&)=delete
Definition: HttpRequestResponse.h:145
AWS_CRT_CPP_API Allocator * ApiAllocator() noexcept
Definition: Allocator.cpp:24
aws_http_header HttpHeader
Definition: HttpConnection.h:34
Definition: HttpRequestResponse.h:110
Definition: HttpRequestResponse.h:35
std::basic_istream< char, std::char_traits< char > > IStream
Definition: Types.h:35
HttpMessage(HttpMessage &&)=delete
Definition: MqttConnection.h:158
Definition: Optional.h:18
HttpMessage & operator=(const HttpMessage &)=delete
Definition: StringView.h:852
#define AWS_CRT_CPP_API
Definition: Exports.h:37
Definition: Allocator.h:11
Allocator * m_allocator
Definition: HttpRequestResponse.h:101
aws_byte_cursor ByteCursor
Definition: Types.h:31
HttpMessage(const HttpMessage &)=delete
aws_allocator Allocator
Definition: Allocator.h:14
struct aws_http_message * m_message
Definition: HttpRequestResponse.h:102