AWS IoT Device SDK C++ v2  1.32.6
AWS IoT Device SDK C++ v2
Public Member Functions | Protected Member Functions | Friends | List of all members
Aws::Crt::Http::HttpRequest Class Reference

#include <HttpRequestResponse.h>

Inheritance diagram for Aws::Crt::Http::HttpRequest:
Aws::Crt::Http::HttpMessage

Public Member Functions

 HttpRequest (Allocator *allocator=ApiAllocator())
 
Optional< ByteCursorGetMethod () const noexcept
 
bool SetMethod (ByteCursor method) noexcept
 
Optional< ByteCursorGetPath () const noexcept
 
bool SetPath (ByteCursor path) noexcept
 
- Public Member Functions inherited from Aws::Crt::Http::HttpMessage
virtual ~HttpMessage ()
 
 HttpMessage (const HttpMessage &)=delete
 
 HttpMessage (HttpMessage &&)=delete
 
HttpMessageoperator= (const HttpMessage &)=delete
 
HttpMessageoperator= (HttpMessage &&)=delete
 
std::shared_ptr< Aws::Crt::Io::InputStreamGetBody () 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< HttpHeaderGetHeader (size_t index) const noexcept
 
bool AddHeader (const HttpHeader &header) noexcept
 
bool EraseHeader (size_t index) noexcept
 
 operator bool () const noexcept
 

Protected Member Functions

 HttpRequest (Allocator *allocator, struct aws_http_message *message)
 
- Protected Member Functions inherited from Aws::Crt::Http::HttpMessage
 HttpMessage (Allocator *allocator, struct aws_http_message *message) noexcept
 

Friends

class Mqtt::MqttConnectionCore
 
class Mqtt5::Mqtt5ClientCore
 

Additional Inherited Members

- Protected Attributes inherited from Aws::Crt::Http::HttpMessage
Allocatorm_allocator
 
struct aws_http_message * m_message
 
std::shared_ptr< Aws::Crt::Io::InputStreamm_bodyStream
 

Detailed Description

Class representing a mutable http request.

Constructor & Destructor Documentation

◆ HttpRequest() [1/2]

Aws::Crt::Http::HttpRequest::HttpRequest ( Allocator allocator = ApiAllocator())

◆ HttpRequest() [2/2]

Aws::Crt::Http::HttpRequest::HttpRequest ( Allocator allocator,
struct aws_http_message *  message 
)
protected

Member Function Documentation

◆ GetMethod()

Optional< ByteCursor > Aws::Crt::Http::HttpRequest::GetMethod ( ) const
noexcept
Returns
the value of the Http method associated with this request

◆ GetPath()

Optional< ByteCursor > Aws::Crt::Http::HttpRequest::GetPath ( ) const
noexcept
Returns
the value of the URI-path associated with this request

◆ SetMethod()

bool Aws::Crt::Http::HttpRequest::SetMethod ( ByteCursor  method)
noexcept

Sets the value of the Http method associated with this request

◆ SetPath()

bool Aws::Crt::Http::HttpRequest::SetPath ( ByteCursor  path)
noexcept

Sets the value of the URI-path associated with this request

Friends And Related Function Documentation

◆ Mqtt5::Mqtt5ClientCore

friend class Mqtt5::Mqtt5ClientCore
friend

◆ Mqtt::MqttConnectionCore

friend class Mqtt::MqttConnectionCore
friend

The documentation for this class was generated from the following files: