MySQL 8.0.40
Source Code Documentation
HttpsClient Class Reference

#include <http_client.h>

Inheritance diagram for HttpsClient:
[legend]

Public Member Functions

 HttpsClient (IOContext &io_ctx, TlsClientContext &&tls_ctx, const std::string &address, uint16_t port)
 
- Public Member Functions inherited from HttpClient
 HttpClient (IOContext &io_ctx, const std::string &hostname, uint16_t port)
 
virtual ~HttpClient ()
 
void make_request (HttpRequest *req, HttpMethod::type method, const std::string &uri)
 initiate a request on the bound IOContext. More...
 
void make_request_sync (HttpRequest *req, HttpMethod::type method, const std::string &uri)
 make a request and wait for the response. More...
 
 operator bool () const
 check if connection had an error. More...
 
std::string error_msg () const
 current error message. More...
 
std::string hostname () const
 hostname to connect to. More...
 
uint16_t port () const
 TCP port to connect to. More...
 

Private Member Functions

std::unique_ptr< HttpClientConnectionBasemake_connection () override
 

Private Attributes

TlsClientContext tls_ctx_
 

Additional Inherited Members

- Protected Attributes inherited from HttpClient
IOContextio_ctx_
 
const std::string hostname_
 
uint16_t port_
 
std::unique_ptr< HttpClientConnectionBaseconn_
 

Constructor & Destructor Documentation

◆ HttpsClient()

HttpsClient::HttpsClient ( IOContext io_ctx,
TlsClientContext &&  tls_ctx,
const std::string &  address,
uint16_t  port 
)
inline

Member Function Documentation

◆ make_connection()

std::unique_ptr< HttpClientConnectionBase > HttpsClient::make_connection ( )
overrideprivatevirtual

Reimplemented from HttpClient.

Member Data Documentation

◆ tls_ctx_

TlsClientContext HttpsClient::tls_ctx_
private

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