MySQL 9.1.0
Source Code Documentation
client.cc File Reference
#include <functional>
#include <iostream>
#include <system_error>
#include <utility>
#include "http/base/uri.h"
#include "http/client/client.h"
#include "http/client/connection.h"
#include "http/client/error_code.h"
#include "http/client/payload_callback.h"
#include "router_config.h"
#include "tls/tls_stream.h"
#include "tls/trace_stream.h"

Classes

class  http::client::ConsoleRawOut
 
class  http::client::ConsoleSocketOut
 
struct  http::client::impl::ConfigSchema
 
struct  http::client::impl::Connection
 
class  http::client::Client::CallbacksPrivateImpl
 

Namespaces

namespace  http
 
namespace  http::client
 
namespace  http::client::impl
 

Typedefs

using http::client::Socket = net::ip::tcp::socket
 
using http::client::TlsSocket = net::tls::TlsStream< net::ip::tcp::socket >
 
using http::client::ConnectionTls = http::client::Connection< TlsSocket >
 
using http::client::ConnectionRaw = http::client::Connection< Socket >
 
using http::client::impl::TlsHandshakeCallback = std::function< void(const std::error_code &ec, const size_t no_of_bytes)>
 
using http::client::impl::TlsHandshakeExecute = std::function< void(TlsHandshakeCallback)>
 

Functions

static void http::client::impl::headers_add_if_not_present (http::base::Headers *h, const char *key, const char *value)
 
template<typename V >
http::client::impl::value_or (V value_users, V value_default)
 
static Client::Endpoint http::client::impl::get_endpoint_from (const http::base::Uri &url)
 
static const std::string & http::client::impl::get_method_as_string (http::base::method::key_type method)
 
template<typename ConnectionStatusCallback >
impl::Connection http::client::impl::create_connection_object (net::io_context &io_context, bool is_tls, TlsClientContext *tls_context, ConnectionStatusCallback *ccs, PayloadCallback *obj, bool use_http2)
 

Variables

const std::string http::client::k_http = "http"
 
const std::string http::client::k_https = "https"