MySQL 8.0.40
Source Code Documentation
|
#include <http_client.h>
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< HttpClientConnectionBase > | make_connection () override |
Private Attributes | |
TlsClientContext | tls_ctx_ |
Additional Inherited Members | |
Protected Attributes inherited from HttpClient | |
IOContext & | io_ctx_ |
const std::string | hostname_ |
uint16_t | port_ |
std::unique_ptr< HttpClientConnectionBase > | conn_ |
|
inline |
|
overrideprivatevirtual |
Reimplemented from HttpClient.
|
private |