MySQL 9.1.0
Source Code Documentation
http::client::Client Class Reference

#include <client.h>

Classes

class  CallbacksPrivateImpl
 
struct  Endpoint
 
struct  Statistics
 

Public Types

using io_context = net::io_context
 
using HttpMethodType = http::base::method::key_type
 

Public Member Functions

 Client (io_context &io_context, TlsClientContext &&tls_context, const bool use_http2=false)
 
 Client (io_context &io_context, const bool use_http2=false)
 
 ~Client ()
 
void async_send_request (Request *request)
 
void send_request (Request *request)
 
 operator bool () const
 
int error_code () const
 
std::string error_message () const
 
const Statisticsstatistics () const
 

Private Member Functions

void start_http_flow ()
 

Private Attributes

bool is_connected_ {false}
 
std::error_code error_code_
 
Endpoint connected_endpoint_
 
io_contextio_context_
 
TlsClientContext tls_context_
 
std::unique_ptr< http::base::ConnectionInterfaceconnection_
 
std::unique_ptr< CallbacksPrivateImplcallbacks_
 
Requestfill_request_by_callback_ {nullptr}
 
Statistics statistics_
 
bool use_http2_ {false}
 

Member Typedef Documentation

◆ HttpMethodType

◆ io_context

Constructor & Destructor Documentation

◆ Client() [1/2]

http::client::Client::Client ( io_context io_context,
TlsClientContext &&  tls_context,
const bool  use_http2 = false 
)

◆ Client() [2/2]

http::client::Client::Client ( io_context io_context,
const bool  use_http2 = false 
)
explicit

◆ ~Client()

http::client::Client::~Client ( )
default

Member Function Documentation

◆ async_send_request()

void http::client::Client::async_send_request ( Request request)

◆ error_code()

int http::client::Client::error_code ( ) const

◆ error_message()

std::string http::client::Client::error_message ( ) const

◆ operator bool()

http::client::Client::operator bool ( ) const

◆ send_request()

void http::client::Client::send_request ( Request request)

◆ start_http_flow()

void http::client::Client::start_http_flow ( )
private

◆ statistics()

const Client::Statistics & http::client::Client::statistics ( ) const

Member Data Documentation

◆ callbacks_

std::unique_ptr<CallbacksPrivateImpl> http::client::Client::callbacks_
private

◆ connected_endpoint_

Endpoint http::client::Client::connected_endpoint_
private

◆ connection_

std::unique_ptr<http::base::ConnectionInterface> http::client::Client::connection_
private

◆ error_code_

std::error_code http::client::Client::error_code_
private

◆ fill_request_by_callback_

Request* http::client::Client::fill_request_by_callback_ {nullptr}
private

◆ io_context_

io_context& http::client::Client::io_context_
private

◆ is_connected_

bool http::client::Client::is_connected_ {false}
private

◆ statistics_

Statistics http::client::Client::statistics_
private

◆ tls_context_

TlsClientContext http::client::Client::tls_context_
private

◆ use_http2_

bool http::client::Client::use_http2_ {false}
private

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