11struct aws_http_header;
12struct aws_http_message;
43 std::shared_ptr<Aws::Crt::Io::InputStream> GetBody() const noexcept;
48 bool SetBody(const
std::shared_ptr<
Aws::Crt::Io::
IStream> &body) noexcept;
50 bool SetBody(const
std::shared_ptr<
Aws::Crt::Io::InputStream> &body) noexcept;
52 size_t GetHeaderCount() const noexcept;
54 bool AddHeader(const
HttpHeader &header) noexcept;
55 bool EraseHeader(
size_t index) noexcept;
57 operator
bool() const noexcept {
return m_message !=
nullptr; }
119 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:66
HttpMessage(HttpMessage &&)=delete
struct aws_http_message * GetUnderlyingMessage() const noexcept
Definition: HttpRequestResponse.h:59
HttpMessage & operator=(HttpMessage &&)=delete
HttpMessage & operator=(const HttpMessage &)=delete
struct aws_http_message * m_message
Definition: HttpRequestResponse.h:65
Allocator * m_allocator
Definition: HttpRequestResponse.h:64
HttpMessage(const HttpMessage &)=delete
Definition: HttpRequestResponse.h:73
Definition: HttpRequestResponse.h:107
Definition: MqttClient.h:127
Definition: Optional.h:13
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:21
int index
Definition: cJSON.h:188
Definition: StringView.h:846