11struct aws_http_header;
12struct aws_http_message;
43 std::shared_ptr<Aws::Crt::Io::InputStream> GetBody() const noexcept;
50 bool SetBody(const
std::shared_ptr<
Aws::Crt::Io::
IStream> &body) noexcept;
57 bool SetBody(const
std::shared_ptr<
Aws::Crt::Io::InputStream> &body) noexcept;
63 size_t GetHeaderCount() const noexcept;
77 bool AddHeader(const
HttpHeader &header) noexcept;
84 bool EraseHeader(
size_t index) noexcept;
89 operator
bool() const noexcept {
return m_message !=
nullptr; }
92 struct aws_http_message *GetUnderlyingMessage() const noexcept {
return m_message; }
95 HttpMessage(
Allocator *allocator,
struct aws_http_message *message)
noexcept;
152 bool SetResponseCode(
int response)
noexcept;
#define AWS_CRT_CPP_API
Definition: Exports.h:37
Definition: HttpRequestResponse.h:31
std::shared_ptr< Aws::Crt::Io::InputStream > m_bodyStream
Definition: HttpRequestResponse.h:99
HttpMessage(HttpMessage &&)=delete
HttpMessage & operator=(HttpMessage &&)=delete
HttpMessage & operator=(const HttpMessage &)=delete
struct aws_http_message * m_message
Definition: HttpRequestResponse.h:98
Allocator * m_allocator
Definition: HttpRequestResponse.h:97
HttpMessage(const HttpMessage &)=delete
Definition: HttpRequestResponse.h:106
Definition: HttpRequestResponse.h:140
Definition: MqttClient.h:131
Definition: Optional.h:17
aws_http_header HttpHeader
Definition: HttpConnection.h:34
std::basic_istream< char, std::char_traits< char > > IStream
Definition: Types.h:37
aws_byte_cursor ByteCursor
Definition: Types.h:33
aws_allocator Allocator
Definition: StlAllocator.h:17
AWS_CRT_CPP_API Allocator * g_allocator
Definition: Api.cpp:23
int index
Definition: cJSON.h:188
Definition: StringView.h:851