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;
struct aws_http_message * m_message
Definition: HttpRequestResponse.h:102
#define AWS_CRT_CPP_API
Definition: Exports.h:36
Definition: HttpRequestResponse.h:144
aws_allocator Allocator
Definition: Allocator.h:14
aws_byte_cursor ByteCursor
Definition: Types.h:31
Definition: HttpRequestResponse.h:109
Definition: HttpRequestResponse.h:34
AWS_CRT_CPP_API Allocator * ApiAllocator() noexcept
Definition: Allocator.cpp:24
Definition: Optional.h:18
aws_http_header HttpHeader
Definition: HttpConnection.h:34
Allocator * m_allocator
Definition: HttpRequestResponse.h:101
std::shared_ptr< Aws::Crt::Io::InputStream > m_bodyStream
Definition: HttpRequestResponse.h:103
Definition: MqttConnection.h:157
Definition: Allocator.h:10