|
aws-crt-cpp
C++ wrapper around the aws-c-* libraries. Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++.
|
#include <HttpRequestResponse.h>
Public Member Functions | |
| 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 | |
Protected Member Functions | |
| HttpMessage (Allocator *allocator, struct aws_http_message *message) noexcept | |
Protected Attributes | |
| Allocator * | m_allocator |
| struct aws_http_message * | m_message |
| std::shared_ptr< Aws::Crt::Io::InputStream > | m_bodyStream |
Base class representing a mutable http request or response.
|
virtual |
|
delete |
|
delete |
|
protectednoexcept |
|
noexcept |
Adds a header to the request
| header | header to add |
Removes a header from the request
| index | index of the header to remove |
|
noexcept |
Gets the input stream representing the message body
|
noexcept |
Gets a particular header in the request
| index | index of the header to fetch |
|
noexcept |
Gets the number of headers contained in this request
|
inlinenoexcept |
|
delete |
|
delete |
|
noexcept |
Sets the input stream representing the message body
| body | the input stream representing the message body |
|
noexcept |
Sets the input stream representing the message body
| body | the input stream representing the message body |
|
protected |
|
protected |
|
protected |