AWS IoT Device SDK C++ v2
1.34.0
AWS IoT Device SDK C++ v2
|
#include <HttpConnection.h>
Public Member Functions | |
virtual | ~HttpClientConnection ()=default |
HttpClientConnection (const HttpClientConnection &)=delete | |
HttpClientConnection (HttpClientConnection &&)=delete | |
HttpClientConnection & | operator= (const HttpClientConnection &)=delete |
HttpClientConnection & | operator= (HttpClientConnection &&)=delete |
std::shared_ptr< HttpClientStream > | NewClientStream (const HttpRequestOptions &requestOptions) noexcept |
bool | IsOpen () const noexcept |
void | Close () noexcept |
HttpVersion | GetVersion () noexcept |
int | LastError () const noexcept |
Static Public Member Functions | |
static bool | CreateConnection (const HttpClientConnectionOptions &connectionOptions, Allocator *allocator) noexcept |
Protected Member Functions | |
HttpClientConnection (aws_http_connection *m_connection, Allocator *allocator) noexcept | |
Protected Attributes | |
aws_http_connection * | m_connection |
Represents a connection from a Http Client to a Server.
|
virtualdefault |
|
delete |
|
delete |
|
protectednoexcept |
|
noexcept |
Initiate a shutdown of the connection. Sometimes, connections are persistent and you want to close them before shutting down your application or whatever is consuming this interface.
Assuming OnConnectionShutdown
has not already been invoked, it will be invoked as a result of this call.
|
staticnoexcept |
Create a new Https Connection to hostName:port, using socketOptions
for tcp options and tlsConnOptions
for TLS/SSL options. If tlsConnOptions
is null http (plain-text) will be used.
returns true on success, and false on failure. If false is returned, onConnectionSetup
will not be invoked. On success, onConnectionSetup
will be called, either with a connection, or an errorCode.
|
noexcept |
|
noexcept |
|
inlinenoexcept |
|
noexcept |
Make a new client initiated request on this connection.
If you take a reference to the return value, the memory and resources for the connection and stream will not be cleaned up until you release it. You can however, release the reference as soon as you don't need it anymore. The internal reference count ensures the resources will not be freed until the stream is completed.
Returns an instance of HttpStream upon success and nullptr on failure.
You must call HttpClientStream::Activate() to begin outgoing processing of the stream.
|
delete |
|
delete |
|
protected |