aws-crt-cpp
|
#include <HttpRequestResponse.h>
Public Member Functions | |
HttpRequest (Allocator *allocator=g_allocator) | |
Optional< ByteCursor > | GetMethod () const noexcept |
bool | SetMethod (ByteCursor method) noexcept |
Optional< ByteCursor > | GetPath () const noexcept |
bool | SetPath (ByteCursor path) noexcept |
![]() | |
virtual | ~HttpMessage () |
HttpMessage (const HttpMessage &)=delete | |
HttpMessage (HttpMessage &&)=delete | |
HttpMessage & | operator= (const HttpMessage &)=delete |
HttpMessage & | operator= (HttpMessage &&)=delete |
std::shared_ptr< Aws::Crt::Io::InputStream > | GetBody () const noexcept |
bool | SetBody (const std::shared_ptr< Aws::Crt::Io::IStream > &body) noexcept |
bool | SetBody (const std::shared_ptr< Aws::Crt::Io::InputStream > &body) noexcept |
size_t | GetHeaderCount () const noexcept |
Optional< HttpHeader > | GetHeader (size_t index) const noexcept |
bool | AddHeader (const HttpHeader &header) noexcept |
bool | EraseHeader (size_t index) noexcept |
operator bool () const noexcept | |
struct aws_http_message * | GetUnderlyingMessage () const noexcept |
Protected Member Functions | |
HttpRequest (Allocator *allocator, struct aws_http_message *message) | |
![]() | |
HttpMessage (Allocator *allocator, struct aws_http_message *message, bool ownsMessage=true) noexcept | |
Friends | |
class | Mqtt::MqttConnection |
Additional Inherited Members | |
![]() | |
Allocator * | m_allocator |
struct aws_http_message * | m_message |
std::shared_ptr< Aws::Crt::Io::InputStream > | m_bodyStream |
bool | m_ownsMessage |
Class representing a mutable http request.
Aws::Crt::Http::HttpRequest::HttpRequest | ( | Allocator * | allocator = g_allocator | ) |
|
protected |
|
noexcept |
Gets the value of the Http method associated with this request
|
noexcept |
Gets the value of the URI-path associated with this request
|
noexcept |
Sets the value of the Http method associated with this request
|
noexcept |
Sets the value of the URI-path associated with this request
|
friend |