MySQL 8.0.39
Source Code Documentation
HttpClientConnectionBase Class Reference

#include <http_client.h>

Inheritance diagram for HttpClientConnectionBase:
[legend]

Classes

class  impl
 

Public Member Functions

 ~HttpClientConnectionBase ()
 
void make_request (HttpRequest *req, HttpMethod::type method, const std::string &uri, std::chrono::seconds timeout=std::chrono::seconds{60})
 
void make_request_sync (HttpRequest *req, HttpMethod::type method, const std::string &uri, std::chrono::seconds timeout=std::chrono::seconds{ 60})
 
 operator bool () const
 connection has an error. More...
 
std::string error_msg () const
 error-msg of the connection. More...
 
std::error_code socket_errno () const
 last socket errno. More...
 

Protected Member Functions

 HttpClientConnectionBase (IOContext &io_ctx)
 
event_base * ev_base () const
 event-base associated with this connection. More...
 

Protected Attributes

std::unique_ptr< implpImpl_
 
IOContextio_ctx_
 
std::error_code socket_errno_
 

Constructor & Destructor Documentation

◆ ~HttpClientConnectionBase()

HttpClientConnectionBase::~HttpClientConnectionBase ( )
default

◆ HttpClientConnectionBase()

HttpClientConnectionBase::HttpClientConnectionBase ( IOContext io_ctx)
protected

Member Function Documentation

◆ error_msg()

std::string HttpClientConnectionBase::error_msg ( ) const

error-msg of the connection.

Note
may not be human friendly as it may come directly from openssl

◆ ev_base()

event_base * HttpClientConnectionBase::ev_base ( ) const
protected

event-base associated with this connection.

◆ make_request()

void HttpClientConnectionBase::make_request ( HttpRequest req,
HttpMethod::type  method,
const std::string &  uri,
std::chrono::seconds  timeout = std::chrono::seconds{60} 
)

◆ make_request_sync()

void HttpClientConnectionBase::make_request_sync ( HttpRequest req,
HttpMethod::type  method,
const std::string &  uri,
std::chrono::seconds  timeout = std::chrono::seconds{ 60} 
)

◆ operator bool()

HttpClientConnectionBase::operator bool ( ) const

connection has an error.

See also
error_msg()

◆ socket_errno()

std::error_code HttpClientConnectionBase::socket_errno ( ) const
inline

last socket errno.

Member Data Documentation

◆ io_ctx_

IOContext& HttpClientConnectionBase::io_ctx_
protected

◆ pImpl_

std::unique_ptr<impl> HttpClientConnectionBase::pImpl_
protected

◆ socket_errno_

std::error_code HttpClientConnectionBase::socket_errno_
protected

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