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;
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;
size_t GetHeaderCount() const noexcept
Definition HttpRequestResponse.cpp:66
std::shared_ptr< Aws::Crt::Io::InputStream > m_bodyStream
Definition HttpRequestResponse.h:103
HttpMessage(HttpMessage &&)=delete
Optional< HttpHeader > GetHeader(size_t index) const noexcept
Definition HttpRequestResponse.cpp:71
bool SetBody(const std::shared_ptr< Aws::Crt::Io::IStream > &body) noexcept
Definition HttpRequestResponse.cpp:39
bool EraseHeader(size_t index) noexcept
Definition HttpRequestResponse.cpp:87
HttpMessage & operator=(HttpMessage &&)=delete
HttpMessage & operator=(const HttpMessage &)=delete
bool AddHeader(const HttpHeader &header) noexcept
Definition HttpRequestResponse.cpp:82
std::shared_ptr< Aws::Crt::Io::InputStream > GetBody() const noexcept
Definition HttpRequestResponse.cpp:34
struct aws_http_message * m_message
Definition HttpRequestResponse.h:102
Allocator * m_allocator
Definition HttpRequestResponse.h:101
HttpMessage(const HttpMessage &)=delete
Optional< ByteCursor > GetMethod() const noexcept
Definition HttpRequestResponse.cpp:104
HttpRequest(Allocator *allocator=ApiAllocator())
Definition HttpRequestResponse.cpp:92
Optional< ByteCursor > GetPath() const noexcept
Definition HttpRequestResponse.cpp:120
bool SetPath(ByteCursor path) noexcept
Definition HttpRequestResponse.cpp:131
bool SetMethod(ByteCursor method) noexcept
Definition HttpRequestResponse.cpp:115
bool SetResponseCode(int response) noexcept
Definition HttpRequestResponse.cpp:154
HttpResponse(Allocator *allocator=ApiAllocator())
Definition HttpRequestResponse.cpp:136
Optional< int > GetResponseCode() const noexcept
Definition HttpRequestResponse.cpp:143
Definition MqttConnection.h:158
#define AWS_CRT_CPP_API
Definition Exports.h:36
Definition Credentials.h:28
aws_http_header HttpHeader
Definition HttpConnection.h:35
Definition Credentials.h:23
Definition HttpRequestResponse.h:24
Definition HttpRequestResponse.h:19
Definition Allocator.h:13
aws_byte_cursor ByteCursor
Definition Types.h:31
AWS_CRT_CPP_API Allocator * ApiAllocator() noexcept
Definition Allocator.cpp:24
aws_allocator Allocator
Definition Allocator.h:14
Definition Allocator.h:11
Definition StringView.h:862