11struct aws_http_header;
12struct 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;
#define AWS_CRT_CPP_API
Definition Exports.h:36
Definition HttpRequestResponse.h:35
std::shared_ptr< Aws::Crt::Io::InputStream > m_bodyStream
Definition HttpRequestResponse.h:103
HttpMessage(HttpMessage &&)=delete
HttpMessage & operator=(HttpMessage &&)=delete
HttpMessage & operator=(const HttpMessage &)=delete
struct aws_http_message * m_message
Definition HttpRequestResponse.h:102
Allocator * m_allocator
Definition HttpRequestResponse.h:101
HttpMessage(const HttpMessage &)=delete
Definition HttpRequestResponse.h:110
Definition HttpRequestResponse.h:145
Definition MqttConnection.h:158
aws_http_header HttpHeader
Definition HttpConnection.h:34
aws_byte_cursor ByteCursor
Definition Types.h:31
aws_allocator Allocator
Definition Allocator.h:14
AWS_CRT_CPP_API Allocator * ApiAllocator() noexcept
Definition Allocator.cpp:24
Definition Allocator.h:11
Definition StringView.h:862