Instrument Neutral Distributed Interface INDI 2.2.5
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
httplib::ClientImpl Class Reference

#include <httplib.h>

Classes

struct  Socket
 
struct  StreamHandle
 

Public Member Functions

 ClientImpl (const std::string &host)
 
 ClientImpl (const std::string &host, int port)
 
 ClientImpl (const std::string &host, int port, const std::string &client_cert_path, const std::string &client_key_path)
 
virtual ~ClientImpl ()
 
virtual bool is_valid () const
 
Result Get (const std::string &path, DownloadProgress progress=nullptr)
 
Result Get (const std::string &path, ContentReceiver content_receiver, DownloadProgress progress=nullptr)
 
Result Get (const std::string &path, ResponseHandler response_handler, ContentReceiver content_receiver, DownloadProgress progress=nullptr)
 
Result Get (const std::string &path, const Headers &headers, DownloadProgress progress=nullptr)
 
Result Get (const std::string &path, const Headers &headers, ContentReceiver content_receiver, DownloadProgress progress=nullptr)
 
Result Get (const std::string &path, const Headers &headers, ResponseHandler response_handler, ContentReceiver content_receiver, DownloadProgress progress=nullptr)
 
Result Get (const std::string &path, const Params &params, const Headers &headers, DownloadProgress progress=nullptr)
 
Result Get (const std::string &path, const Params &params, const Headers &headers, ContentReceiver content_receiver, DownloadProgress progress=nullptr)
 
Result Get (const std::string &path, const Params &params, const Headers &headers, ResponseHandler response_handler, ContentReceiver content_receiver, DownloadProgress progress=nullptr)
 
Result Head (const std::string &path)
 
Result Head (const std::string &path, const Headers &headers)
 
Result Post (const std::string &path)
 
Result Post (const std::string &path, const char *body, size_t content_length, const std::string &content_type, UploadProgress progress=nullptr)
 
Result Post (const std::string &path, const std::string &body, const std::string &content_type, UploadProgress progress=nullptr)
 
Result Post (const std::string &path, size_t content_length, ContentProvider content_provider, const std::string &content_type, UploadProgress progress=nullptr)
 
Result Post (const std::string &path, size_t content_length, ContentProvider content_provider, const std::string &content_type, ContentReceiver content_receiver, UploadProgress progress=nullptr)
 
Result Post (const std::string &path, ContentProviderWithoutLength content_provider, const std::string &content_type, UploadProgress progress=nullptr)
 
Result Post (const std::string &path, ContentProviderWithoutLength content_provider, const std::string &content_type, ContentReceiver content_receiver, UploadProgress progress=nullptr)
 
Result Post (const std::string &path, const Params &params)
 
Result Post (const std::string &path, const UploadFormDataItems &items, UploadProgress progress=nullptr)
 
Result Post (const std::string &path, const Headers &headers)
 
Result Post (const std::string &path, const Headers &headers, const char *body, size_t content_length, const std::string &content_type, UploadProgress progress=nullptr)
 
Result Post (const std::string &path, const Headers &headers, const std::string &body, const std::string &content_type, UploadProgress progress=nullptr)
 
Result Post (const std::string &path, const Headers &headers, size_t content_length, ContentProvider content_provider, const std::string &content_type, UploadProgress progress=nullptr)
 
Result Post (const std::string &path, const Headers &headers, size_t content_length, ContentProvider content_provider, const std::string &content_type, ContentReceiver content_receiver, DownloadProgress progress=nullptr)
 
Result Post (const std::string &path, const Headers &headers, ContentProviderWithoutLength content_provider, const std::string &content_type, UploadProgress progress=nullptr)
 
Result Post (const std::string &path, const Headers &headers, ContentProviderWithoutLength content_provider, const std::string &content_type, ContentReceiver content_receiver, DownloadProgress progress=nullptr)
 
Result Post (const std::string &path, const Headers &headers, const Params &params)
 
Result Post (const std::string &path, const Headers &headers, const UploadFormDataItems &items, UploadProgress progress=nullptr)
 
Result Post (const std::string &path, const Headers &headers, const UploadFormDataItems &items, const std::string &boundary, UploadProgress progress=nullptr)
 
Result Post (const std::string &path, const Headers &headers, const UploadFormDataItems &items, const FormDataProviderItems &provider_items, UploadProgress progress=nullptr)
 
Result Post (const std::string &path, const Headers &headers, const std::string &body, const std::string &content_type, ContentReceiver content_receiver, DownloadProgress progress=nullptr)
 
Result Put (const std::string &path)
 
Result Put (const std::string &path, const char *body, size_t content_length, const std::string &content_type, UploadProgress progress=nullptr)
 
Result Put (const std::string &path, const std::string &body, const std::string &content_type, UploadProgress progress=nullptr)
 
Result Put (const std::string &path, size_t content_length, ContentProvider content_provider, const std::string &content_type, UploadProgress progress=nullptr)
 
Result Put (const std::string &path, size_t content_length, ContentProvider content_provider, const std::string &content_type, ContentReceiver content_receiver, UploadProgress progress=nullptr)
 
Result Put (const std::string &path, ContentProviderWithoutLength content_provider, const std::string &content_type, UploadProgress progress=nullptr)
 
Result Put (const std::string &path, ContentProviderWithoutLength content_provider, const std::string &content_type, ContentReceiver content_receiver, UploadProgress progress=nullptr)
 
Result Put (const std::string &path, const Params &params)
 
Result Put (const std::string &path, const UploadFormDataItems &items, UploadProgress progress=nullptr)
 
Result Put (const std::string &path, const Headers &headers)
 
Result Put (const std::string &path, const Headers &headers, const char *body, size_t content_length, const std::string &content_type, UploadProgress progress=nullptr)
 
Result Put (const std::string &path, const Headers &headers, const std::string &body, const std::string &content_type, UploadProgress progress=nullptr)
 
Result Put (const std::string &path, const Headers &headers, size_t content_length, ContentProvider content_provider, const std::string &content_type, UploadProgress progress=nullptr)
 
Result Put (const std::string &path, const Headers &headers, size_t content_length, ContentProvider content_provider, const std::string &content_type, ContentReceiver content_receiver, UploadProgress progress=nullptr)
 
Result Put (const std::string &path, const Headers &headers, ContentProviderWithoutLength content_provider, const std::string &content_type, UploadProgress progress=nullptr)
 
Result Put (const std::string &path, const Headers &headers, ContentProviderWithoutLength content_provider, const std::string &content_type, ContentReceiver content_receiver, UploadProgress progress=nullptr)
 
Result Put (const std::string &path, const Headers &headers, const Params &params)
 
Result Put (const std::string &path, const Headers &headers, const UploadFormDataItems &items, UploadProgress progress=nullptr)
 
Result Put (const std::string &path, const Headers &headers, const UploadFormDataItems &items, const std::string &boundary, UploadProgress progress=nullptr)
 
Result Put (const std::string &path, const Headers &headers, const UploadFormDataItems &items, const FormDataProviderItems &provider_items, UploadProgress progress=nullptr)
 
Result Put (const std::string &path, const Headers &headers, const std::string &body, const std::string &content_type, ContentReceiver content_receiver, DownloadProgress progress=nullptr)
 
Result Patch (const std::string &path)
 
Result Patch (const std::string &path, const char *body, size_t content_length, const std::string &content_type, UploadProgress progress=nullptr)
 
Result Patch (const std::string &path, const std::string &body, const std::string &content_type, UploadProgress progress=nullptr)
 
Result Patch (const std::string &path, size_t content_length, ContentProvider content_provider, const std::string &content_type, UploadProgress progress=nullptr)
 
Result Patch (const std::string &path, size_t content_length, ContentProvider content_provider, const std::string &content_type, ContentReceiver content_receiver, UploadProgress progress=nullptr)
 
Result Patch (const std::string &path, ContentProviderWithoutLength content_provider, const std::string &content_type, UploadProgress progress=nullptr)
 
Result Patch (const std::string &path, ContentProviderWithoutLength content_provider, const std::string &content_type, ContentReceiver content_receiver, UploadProgress progress=nullptr)
 
Result Patch (const std::string &path, const Params &params)
 
Result Patch (const std::string &path, const UploadFormDataItems &items, UploadProgress progress=nullptr)
 
Result Patch (const std::string &path, const Headers &headers, UploadProgress progress=nullptr)
 
Result Patch (const std::string &path, const Headers &headers, const char *body, size_t content_length, const std::string &content_type, UploadProgress progress=nullptr)
 
Result Patch (const std::string &path, const Headers &headers, const std::string &body, const std::string &content_type, UploadProgress progress=nullptr)
 
Result Patch (const std::string &path, const Headers &headers, size_t content_length, ContentProvider content_provider, const std::string &content_type, UploadProgress progress=nullptr)
 
Result Patch (const std::string &path, const Headers &headers, size_t content_length, ContentProvider content_provider, const std::string &content_type, ContentReceiver content_receiver, UploadProgress progress=nullptr)
 
Result Patch (const std::string &path, const Headers &headers, ContentProviderWithoutLength content_provider, const std::string &content_type, UploadProgress progress=nullptr)
 
Result Patch (const std::string &path, const Headers &headers, ContentProviderWithoutLength content_provider, const std::string &content_type, ContentReceiver content_receiver, UploadProgress progress=nullptr)
 
Result Patch (const std::string &path, const Headers &headers, const Params &params)
 
Result Patch (const std::string &path, const Headers &headers, const UploadFormDataItems &items, UploadProgress progress=nullptr)
 
Result Patch (const std::string &path, const Headers &headers, const UploadFormDataItems &items, const std::string &boundary, UploadProgress progress=nullptr)
 
Result Patch (const std::string &path, const Headers &headers, const UploadFormDataItems &items, const FormDataProviderItems &provider_items, UploadProgress progress=nullptr)
 
Result Patch (const std::string &path, const Headers &headers, const std::string &body, const std::string &content_type, ContentReceiver content_receiver, DownloadProgress progress=nullptr)
 
Result Delete (const std::string &path, DownloadProgress progress=nullptr)
 
Result Delete (const std::string &path, const char *body, size_t content_length, const std::string &content_type, DownloadProgress progress=nullptr)
 
Result Delete (const std::string &path, const std::string &body, const std::string &content_type, DownloadProgress progress=nullptr)
 
Result Delete (const std::string &path, const Params &params, DownloadProgress progress=nullptr)
 
Result Delete (const std::string &path, const Headers &headers, DownloadProgress progress=nullptr)
 
Result Delete (const std::string &path, const Headers &headers, const char *body, size_t content_length, const std::string &content_type, DownloadProgress progress=nullptr)
 
Result Delete (const std::string &path, const Headers &headers, const std::string &body, const std::string &content_type, DownloadProgress progress=nullptr)
 
Result Delete (const std::string &path, const Headers &headers, const Params &params, DownloadProgress progress=nullptr)
 
Result Options (const std::string &path)
 
Result Options (const std::string &path, const Headers &headers)
 
StreamHandle open_stream (const std::string &method, const std::string &path, const Params &params={}, const Headers &headers={}, const std::string &body={}, const std::string &content_type={})
 
bool send (Request &req, Response &res, Error &error)
 
Result send (const Request &req)
 
void stop ()
 
std::string host () const
 
int port () const
 
size_t is_socket_open () const
 
socket_t socket () const
 
void set_hostname_addr_map (std::map< std::string, std::string > addr_map)
 
void set_default_headers (Headers headers)
 
void set_header_writer (std::function< ssize_t(Stream &, Headers &)> const &writer)
 
void set_address_family (int family)
 
void set_tcp_nodelay (bool on)
 
void set_ipv6_v6only (bool on)
 
void set_socket_options (SocketOptions socket_options)
 
void set_connection_timeout (time_t sec, time_t usec=0)
 
template<class Rep , class Period >
void set_connection_timeout (const std::chrono::duration< Rep, Period > &duration)
 
void set_read_timeout (time_t sec, time_t usec=0)
 
template<class Rep , class Period >
void set_read_timeout (const std::chrono::duration< Rep, Period > &duration)
 
void set_write_timeout (time_t sec, time_t usec=0)
 
template<class Rep , class Period >
void set_write_timeout (const std::chrono::duration< Rep, Period > &duration)
 
void set_max_timeout (time_t msec)
 
template<class Rep , class Period >
void set_max_timeout (const std::chrono::duration< Rep, Period > &duration)
 
void set_basic_auth (const std::string &username, const std::string &password)
 
void set_bearer_token_auth (const std::string &token)
 
void set_keep_alive (bool on)
 
void set_follow_location (bool on)
 
void set_path_encode (bool on)
 
void set_compress (bool on)
 
void set_decompress (bool on)
 
void set_interface (const std::string &intf)
 
void set_proxy (const std::string &host, int port)
 
void set_proxy_basic_auth (const std::string &username, const std::string &password)
 
void set_proxy_bearer_token_auth (const std::string &token)
 
void set_logger (Logger logger)
 
void set_error_logger (ErrorLogger error_logger)
 

Protected Member Functions

virtual bool create_and_connect_socket (Socket &socket, Error &error)
 
virtual bool ensure_socket_connection (Socket &socket, Error &error)
 
virtual void shutdown_ssl (Socket &socket, bool shutdown_gracefully)
 
void shutdown_socket (Socket &socket) const
 
void close_socket (Socket &socket)
 
bool process_request (Stream &strm, Request &req, Response &res, bool close_connection, Error &error)
 
bool write_content_with_provider (Stream &strm, const Request &req, Error &error) const
 
void copy_settings (const ClientImpl &rhs)
 
void output_log (const Request &req, const Response &res) const
 
void output_error_log (const Error &err, const Request *req) const
 

Protected Attributes

const std::string host_
 
const int port_
 
Socket socket_
 
std::mutex socket_mutex_
 
std::recursive_mutex request_mutex_
 
size_t socket_requests_in_flight_ = 0
 
std::thread::id socket_requests_are_from_thread_ = std::thread::id()
 
bool socket_should_be_closed_when_request_is_done_ = false
 
std::map< std::string, std::string > addr_map_
 
Headers default_headers_
 
std::function< ssize_t(Stream &, Headers &)> header_writer_
 
std::string client_cert_path_
 
std::string client_key_path_
 
time_t connection_timeout_sec_ = CPPHTTPLIB_CONNECTION_TIMEOUT_SECOND
 
time_t connection_timeout_usec_ = CPPHTTPLIB_CONNECTION_TIMEOUT_USECOND
 
time_t read_timeout_sec_ = CPPHTTPLIB_CLIENT_READ_TIMEOUT_SECOND
 
time_t read_timeout_usec_ = CPPHTTPLIB_CLIENT_READ_TIMEOUT_USECOND
 
time_t write_timeout_sec_ = CPPHTTPLIB_CLIENT_WRITE_TIMEOUT_SECOND
 
time_t write_timeout_usec_ = CPPHTTPLIB_CLIENT_WRITE_TIMEOUT_USECOND
 
time_t max_timeout_msec_ = CPPHTTPLIB_CLIENT_MAX_TIMEOUT_MSECOND
 
std::string basic_auth_username_
 
std::string basic_auth_password_
 
std::string bearer_token_auth_token_
 
bool keep_alive_ = false
 
bool follow_location_ = false
 
bool path_encode_ = true
 
int address_family_ = AF_UNSPEC
 
bool tcp_nodelay_ = CPPHTTPLIB_TCP_NODELAY
 
bool ipv6_v6only_ = CPPHTTPLIB_IPV6_V6ONLY
 
SocketOptions socket_options_ = nullptr
 
bool compress_ = false
 
bool decompress_ = true
 
std::string interface_
 
std::string proxy_host_
 
int proxy_port_ = -1
 
std::string proxy_basic_auth_username_
 
std::string proxy_basic_auth_password_
 
std::string proxy_bearer_token_auth_token_
 
std::mutex logger_mutex_
 
Logger logger_
 
ErrorLogger error_logger_
 

Detailed Description

Definition at line 1604 of file httplib.h.

Constructor & Destructor Documentation

◆ ClientImpl() [1/3]

httplib::ClientImpl::ClientImpl ( const std::string &  host)
inlineexplicit

Definition at line 12435 of file httplib.h.

◆ ClientImpl() [2/3]

httplib::ClientImpl::ClientImpl ( const std::string &  host,
int  port 
)
inlineexplicit

Definition at line 12438 of file httplib.h.

◆ ClientImpl() [3/3]

httplib::ClientImpl::ClientImpl ( const std::string &  host,
int  port,
const std::string &  client_cert_path,
const std::string &  client_key_path 
)
inlineexplicit

Definition at line 12441 of file httplib.h.

◆ ~ClientImpl()

httplib::ClientImpl::~ClientImpl ( )
inlinevirtual

Definition at line 12447 of file httplib.h.

Member Function Documentation

◆ close_socket()

void httplib::ClientImpl::close_socket ( Socket &  socket)
inlineprotected

Definition at line 12608 of file httplib.h.

◆ copy_settings()

void httplib::ClientImpl::copy_settings ( const ClientImpl &  rhs)
inlineprotected

Definition at line 12473 of file httplib.h.

◆ create_and_connect_socket()

bool httplib::ClientImpl::create_and_connect_socket ( Socket &  socket,
Error &  error 
)
inlineprotectedvirtual

Definition at line 12549 of file httplib.h.

◆ Delete() [1/8]

Result httplib::ClientImpl::Delete ( const std::string &  path,
const char *  body,
size_t  content_length,
const std::string &  content_type,
DownloadProgress  progress = nullptr 
)
inline

Definition at line 15041 of file httplib.h.

◆ Delete() [2/8]

Result httplib::ClientImpl::Delete ( const std::string &  path,
const Headers &  headers,
const char *  body,
size_t  content_length,
const std::string &  content_type,
DownloadProgress  progress = nullptr 
)
inline

Definition at line 15083 of file httplib.h.

◆ Delete() [3/8]

Result httplib::ClientImpl::Delete ( const std::string &  path,
const Headers &  headers,
const Params &  params,
DownloadProgress  progress = nullptr 
)
inline

Definition at line 15074 of file httplib.h.

◆ Delete() [4/8]

Result httplib::ClientImpl::Delete ( const std::string &  path,
const Headers &  headers,
const std::string &  body,
const std::string &  content_type,
DownloadProgress  progress = nullptr 
)
inline

Definition at line 15058 of file httplib.h.

◆ Delete() [5/8]

Result httplib::ClientImpl::Delete ( const std::string &  path,
const Headers &  headers,
DownloadProgress  progress = nullptr 
)
inline

Definition at line 15034 of file httplib.h.

◆ Delete() [6/8]

Result httplib::ClientImpl::Delete ( const std::string &  path,
const Params &  params,
DownloadProgress  progress = nullptr 
)
inline

Definition at line 15068 of file httplib.h.

◆ Delete() [7/8]

Result httplib::ClientImpl::Delete ( const std::string &  path,
const std::string &  body,
const std::string &  content_type,
DownloadProgress  progress = nullptr 
)
inline

Definition at line 15049 of file httplib.h.

◆ Delete() [8/8]

Result httplib::ClientImpl::Delete ( const std::string &  path,
DownloadProgress  progress = nullptr 
)
inline

Definition at line 15028 of file httplib.h.

◆ ensure_socket_connection()

bool httplib::ClientImpl::ensure_socket_connection ( Socket &  socket,
Error &  error 
)
inlineprotectedvirtual

Definition at line 12561 of file httplib.h.

◆ Get() [1/9]

Result httplib::ClientImpl::Get ( const std::string &  path,
const Headers &  headers,
ContentReceiver  content_receiver,
DownloadProgress  progress = nullptr 
)
inline

Definition at line 14277 of file httplib.h.

◆ Get() [2/9]

Result httplib::ClientImpl::Get ( const std::string &  path,
const Headers &  headers,
DownloadProgress  progress = nullptr 
)
inline

Definition at line 14253 of file httplib.h.

◆ Get() [3/9]

Result httplib::ClientImpl::Get ( const std::string &  path,
const Headers &  headers,
ResponseHandler  response_handler,
ContentReceiver  content_receiver,
DownloadProgress  progress = nullptr 
)
inline

Definition at line 14294 of file httplib.h.

◆ Get() [4/9]

Result httplib::ClientImpl::Get ( const std::string &  path,
const Params &  params,
const Headers &  headers,
ContentReceiver  content_receiver,
DownloadProgress  progress = nullptr 
)
inline

Definition at line 14319 of file httplib.h.

◆ Get() [5/9]

Result httplib::ClientImpl::Get ( const std::string &  path,
const Params &  params,
const Headers &  headers,
DownloadProgress  progress = nullptr 
)
inline

Definition at line 14240 of file httplib.h.

◆ Get() [6/9]

Result httplib::ClientImpl::Get ( const std::string &  path,
const Params &  params,
const Headers &  headers,
ResponseHandler  response_handler,
ContentReceiver  content_receiver,
DownloadProgress  progress = nullptr 
)
inline

Definition at line 14328 of file httplib.h.

◆ Get() [7/9]

Result httplib::ClientImpl::Get ( const std::string &  path,
ContentReceiver  content_receiver,
DownloadProgress  progress = nullptr 
)
inline

Definition at line 14269 of file httplib.h.

◆ Get() [8/9]

Result httplib::ClientImpl::Get ( const std::string &  path,
DownloadProgress  progress = nullptr 
)
inline

Definition at line 14234 of file httplib.h.

◆ Get() [9/9]

Result httplib::ClientImpl::Get ( const std::string &  path,
ResponseHandler  response_handler,
ContentReceiver  content_receiver,
DownloadProgress  progress = nullptr 
)
inline

Definition at line 14285 of file httplib.h.

◆ Head() [1/2]

Result httplib::ClientImpl::Head ( const std::string &  path)
inline

Definition at line 14345 of file httplib.h.

◆ Head() [2/2]

Result httplib::ClientImpl::Head ( const std::string &  path,
const Headers &  headers 
)
inline

Definition at line 14350 of file httplib.h.

◆ host()

std::string httplib::ClientImpl::host ( ) const
inline

Definition at line 15153 of file httplib.h.

◆ is_socket_open()

size_t httplib::ClientImpl::is_socket_open ( ) const
inline

Definition at line 15163 of file httplib.h.

◆ is_valid()

bool httplib::ClientImpl::is_valid ( ) const
inlinevirtual

Definition at line 12468 of file httplib.h.

◆ open_stream()

ClientImpl::StreamHandle httplib::ClientImpl::open_stream ( const std::string &  method,
const std::string &  path,
const Params &  params = {},
const Headers &  headers = {},
const std::string &  body = {},
const std::string &  content_type = {} 
)
inline

Definition at line 12928 of file httplib.h.

◆ Options() [1/2]

Result httplib::ClientImpl::Options ( const std::string &  path)
inline

Definition at line 15108 of file httplib.h.

◆ Options() [2/2]

Result httplib::ClientImpl::Options ( const std::string &  path,
const Headers &  headers 
)
inline

Definition at line 15113 of file httplib.h.

◆ output_error_log()

void httplib::ClientImpl::output_error_log ( const Error &  err,
const Request *  req 
) const
inlineprotected

Definition at line 14020 of file httplib.h.

◆ output_log()

void httplib::ClientImpl::output_log ( const Request &  req,
const Response &  res 
) const
inlineprotected

Definition at line 14010 of file httplib.h.

◆ Patch() [1/21]

Result httplib::ClientImpl::Patch ( const std::string &  path)
inline

Definition at line 14806 of file httplib.h.

◆ Patch() [2/21]

Result httplib::ClientImpl::Patch ( const std::string &  path,
const char *  body,
size_t  content_length,
const std::string &  content_type,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14817 of file httplib.h.

◆ Patch() [3/21]

Result httplib::ClientImpl::Patch ( const std::string &  path,
const Headers &  headers,
const char *  body,
size_t  content_length,
const std::string &  content_type,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14917 of file httplib.h.

◆ Patch() [4/21]

Result httplib::ClientImpl::Patch ( const std::string &  path,
const Headers &  headers,
const Params &  params 
)
inline

Definition at line 14876 of file httplib.h.

◆ Patch() [5/21]

Result httplib::ClientImpl::Patch ( const std::string &  path,
const Headers &  headers,
const std::string &  body,
const std::string &  content_type,
ContentReceiver  content_receiver,
DownloadProgress  progress = nullptr 
)
inline

Definition at line 14996 of file httplib.h.

◆ Patch() [6/21]

Result httplib::ClientImpl::Patch ( const std::string &  path,
const Headers &  headers,
const std::string &  body,
const std::string &  content_type,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14927 of file httplib.h.

◆ Patch() [7/21]

Result httplib::ClientImpl::Patch ( const std::string &  path,
const Headers &  headers,
const UploadFormDataItems &  items,
const FormDataProviderItems &  provider_items,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14982 of file httplib.h.

◆ Patch() [8/21]

Result httplib::ClientImpl::Patch ( const std::string &  path,
const Headers &  headers,
const UploadFormDataItems &  items,
const std::string &  boundary,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14901 of file httplib.h.

◆ Patch() [9/21]

Result httplib::ClientImpl::Patch ( const std::string &  path,
const Headers &  headers,
const UploadFormDataItems &  items,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14890 of file httplib.h.

◆ Patch() [10/21]

Result httplib::ClientImpl::Patch ( const std::string &  path,
const Headers &  headers,
ContentProviderWithoutLength  content_provider,
const std::string &  content_type,
ContentReceiver  content_receiver,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14971 of file httplib.h.

◆ Patch() [11/21]

Result httplib::ClientImpl::Patch ( const std::string &  path,
const Headers &  headers,
ContentProviderWithoutLength  content_provider,
const std::string &  content_type,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14961 of file httplib.h.

◆ Patch() [12/21]

Result httplib::ClientImpl::Patch ( const std::string &  path,
const Headers &  headers,
size_t  content_length,
ContentProvider  content_provider,
const std::string &  content_type,
ContentReceiver  content_receiver,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14948 of file httplib.h.

◆ Patch() [13/21]

Result httplib::ClientImpl::Patch ( const std::string &  path,
const Headers &  headers,
size_t  content_length,
ContentProvider  content_provider,
const std::string &  content_type,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14937 of file httplib.h.

◆ Patch() [14/21]

Result httplib::ClientImpl::Patch ( const std::string &  path,
const Headers &  headers,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14811 of file httplib.h.

◆ Patch() [15/21]

Result httplib::ClientImpl::Patch ( const std::string &  path,
const Params &  params 
)
inline

Definition at line 14833 of file httplib.h.

◆ Patch() [16/21]

Result httplib::ClientImpl::Patch ( const std::string &  path,
const std::string &  body,
const std::string &  content_type,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14825 of file httplib.h.

◆ Patch() [17/21]

Result httplib::ClientImpl::Patch ( const std::string &  path,
const UploadFormDataItems &  items,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14883 of file httplib.h.

◆ Patch() [18/21]

Result httplib::ClientImpl::Patch ( const std::string &  path,
ContentProviderWithoutLength  content_provider,
const std::string &  content_type,
ContentReceiver  content_receiver,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14866 of file httplib.h.

◆ Patch() [19/21]

Result httplib::ClientImpl::Patch ( const std::string &  path,
ContentProviderWithoutLength  content_provider,
const std::string &  content_type,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14857 of file httplib.h.

◆ Patch() [20/21]

Result httplib::ClientImpl::Patch ( const std::string &  path,
size_t  content_length,
ContentProvider  content_provider,
const std::string &  content_type,
ContentReceiver  content_receiver,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14847 of file httplib.h.

◆ Patch() [21/21]

Result httplib::ClientImpl::Patch ( const std::string &  path,
size_t  content_length,
ContentProvider  content_provider,
const std::string &  content_type,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14838 of file httplib.h.

◆ port()

int httplib::ClientImpl::port ( ) const
inline

Definition at line 15158 of file httplib.h.

◆ Post() [1/21]

Result httplib::ClientImpl::Post ( const std::string &  path)
inline

Definition at line 14365 of file httplib.h.

◆ Post() [2/21]

Result httplib::ClientImpl::Post ( const std::string &  path,
const char *  body,
size_t  content_length,
const std::string &  content_type,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14376 of file httplib.h.

◆ Post() [3/21]

Result httplib::ClientImpl::Post ( const std::string &  path,
const Headers &  headers 
)
inline

Definition at line 14370 of file httplib.h.

◆ Post() [4/21]

Result httplib::ClientImpl::Post ( const std::string &  path,
const Headers &  headers,
const char *  body,
size_t  content_length,
const std::string &  content_type,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14475 of file httplib.h.

◆ Post() [5/21]

Result httplib::ClientImpl::Post ( const std::string &  path,
const Headers &  headers,
const Params &  params 
)
inline

Definition at line 14434 of file httplib.h.

◆ Post() [6/21]

Result httplib::ClientImpl::Post ( const std::string &  path,
const Headers &  headers,
const std::string &  body,
const std::string &  content_type,
ContentReceiver  content_receiver,
DownloadProgress  progress = nullptr 
)
inline

Definition at line 14554 of file httplib.h.

◆ Post() [7/21]

Result httplib::ClientImpl::Post ( const std::string &  path,
const Headers &  headers,
const std::string &  body,
const std::string &  content_type,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14485 of file httplib.h.

◆ Post() [8/21]

Result httplib::ClientImpl::Post ( const std::string &  path,
const Headers &  headers,
const UploadFormDataItems &  items,
const FormDataProviderItems &  provider_items,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14540 of file httplib.h.

◆ Post() [9/21]

Result httplib::ClientImpl::Post ( const std::string &  path,
const Headers &  headers,
const UploadFormDataItems &  items,
const std::string &  boundary,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14459 of file httplib.h.

◆ Post() [10/21]

Result httplib::ClientImpl::Post ( const std::string &  path,
const Headers &  headers,
const UploadFormDataItems &  items,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14448 of file httplib.h.

◆ Post() [11/21]

Result httplib::ClientImpl::Post ( const std::string &  path,
const Headers &  headers,
ContentProviderWithoutLength  content_provider,
const std::string &  content_type,
ContentReceiver  content_receiver,
DownloadProgress  progress = nullptr 
)
inline

Definition at line 14529 of file httplib.h.

◆ Post() [12/21]

Result httplib::ClientImpl::Post ( const std::string &  path,
const Headers &  headers,
ContentProviderWithoutLength  content_provider,
const std::string &  content_type,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14519 of file httplib.h.

◆ Post() [13/21]

Result httplib::ClientImpl::Post ( const std::string &  path,
const Headers &  headers,
size_t  content_length,
ContentProvider  content_provider,
const std::string &  content_type,
ContentReceiver  content_receiver,
DownloadProgress  progress = nullptr 
)
inline

Definition at line 14506 of file httplib.h.

◆ Post() [14/21]

Result httplib::ClientImpl::Post ( const std::string &  path,
const Headers &  headers,
size_t  content_length,
ContentProvider  content_provider,
const std::string &  content_type,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14495 of file httplib.h.

◆ Post() [15/21]

Result httplib::ClientImpl::Post ( const std::string &  path,
const Params &  params 
)
inline

Definition at line 14391 of file httplib.h.

◆ Post() [16/21]

Result httplib::ClientImpl::Post ( const std::string &  path,
const std::string &  body,
const std::string &  content_type,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14384 of file httplib.h.

◆ Post() [17/21]

Result httplib::ClientImpl::Post ( const std::string &  path,
const UploadFormDataItems &  items,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14441 of file httplib.h.

◆ Post() [18/21]

Result httplib::ClientImpl::Post ( const std::string &  path,
ContentProviderWithoutLength  content_provider,
const std::string &  content_type,
ContentReceiver  content_receiver,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14424 of file httplib.h.

◆ Post() [19/21]

Result httplib::ClientImpl::Post ( const std::string &  path,
ContentProviderWithoutLength  content_provider,
const std::string &  content_type,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14415 of file httplib.h.

◆ Post() [20/21]

Result httplib::ClientImpl::Post ( const std::string &  path,
size_t  content_length,
ContentProvider  content_provider,
const std::string &  content_type,
ContentReceiver  content_receiver,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14405 of file httplib.h.

◆ Post() [21/21]

Result httplib::ClientImpl::Post ( const std::string &  path,
size_t  content_length,
ContentProvider  content_provider,
const std::string &  content_type,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14396 of file httplib.h.

◆ process_request()

bool httplib::ClientImpl::process_request ( Stream &  strm,
Request &  req,
Response &  res,
bool  close_connection,
Error &  error 
)
inlineprotected

Definition at line 14030 of file httplib.h.

◆ Put() [1/21]

Result httplib::ClientImpl::Put ( const std::string &  path)
inline

Definition at line 14586 of file httplib.h.

◆ Put() [2/21]

Result httplib::ClientImpl::Put ( const std::string &  path,
const char *  body,
size_t  content_length,
const std::string &  content_type,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14596 of file httplib.h.

◆ Put() [3/21]

Result httplib::ClientImpl::Put ( const std::string &  path,
const Headers &  headers 
)
inline

Definition at line 14591 of file httplib.h.

◆ Put() [4/21]

Result httplib::ClientImpl::Put ( const std::string &  path,
const Headers &  headers,
const char *  body,
size_t  content_length,
const std::string &  content_type,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14695 of file httplib.h.

◆ Put() [5/21]

Result httplib::ClientImpl::Put ( const std::string &  path,
const Headers &  headers,
const Params &  params 
)
inline

Definition at line 14654 of file httplib.h.

◆ Put() [6/21]

Result httplib::ClientImpl::Put ( const std::string &  path,
const Headers &  headers,
const std::string &  body,
const std::string &  content_type,
ContentReceiver  content_receiver,
DownloadProgress  progress = nullptr 
)
inline

Definition at line 14774 of file httplib.h.

◆ Put() [7/21]

Result httplib::ClientImpl::Put ( const std::string &  path,
const Headers &  headers,
const std::string &  body,
const std::string &  content_type,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14705 of file httplib.h.

◆ Put() [8/21]

Result httplib::ClientImpl::Put ( const std::string &  path,
const Headers &  headers,
const UploadFormDataItems &  items,
const FormDataProviderItems &  provider_items,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14760 of file httplib.h.

◆ Put() [9/21]

Result httplib::ClientImpl::Put ( const std::string &  path,
const Headers &  headers,
const UploadFormDataItems &  items,
const std::string &  boundary,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14679 of file httplib.h.

◆ Put() [10/21]

Result httplib::ClientImpl::Put ( const std::string &  path,
const Headers &  headers,
const UploadFormDataItems &  items,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14668 of file httplib.h.

◆ Put() [11/21]

Result httplib::ClientImpl::Put ( const std::string &  path,
const Headers &  headers,
ContentProviderWithoutLength  content_provider,
const std::string &  content_type,
ContentReceiver  content_receiver,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14749 of file httplib.h.

◆ Put() [12/21]

Result httplib::ClientImpl::Put ( const std::string &  path,
const Headers &  headers,
ContentProviderWithoutLength  content_provider,
const std::string &  content_type,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14739 of file httplib.h.

◆ Put() [13/21]

Result httplib::ClientImpl::Put ( const std::string &  path,
const Headers &  headers,
size_t  content_length,
ContentProvider  content_provider,
const std::string &  content_type,
ContentReceiver  content_receiver,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14726 of file httplib.h.

◆ Put() [14/21]

Result httplib::ClientImpl::Put ( const std::string &  path,
const Headers &  headers,
size_t  content_length,
ContentProvider  content_provider,
const std::string &  content_type,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14715 of file httplib.h.

◆ Put() [15/21]

Result httplib::ClientImpl::Put ( const std::string &  path,
const Params &  params 
)
inline

Definition at line 14611 of file httplib.h.

◆ Put() [16/21]

Result httplib::ClientImpl::Put ( const std::string &  path,
const std::string &  body,
const std::string &  content_type,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14604 of file httplib.h.

◆ Put() [17/21]

Result httplib::ClientImpl::Put ( const std::string &  path,
const UploadFormDataItems &  items,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14661 of file httplib.h.

◆ Put() [18/21]

Result httplib::ClientImpl::Put ( const std::string &  path,
ContentProviderWithoutLength  content_provider,
const std::string &  content_type,
ContentReceiver  content_receiver,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14644 of file httplib.h.

◆ Put() [19/21]

Result httplib::ClientImpl::Put ( const std::string &  path,
ContentProviderWithoutLength  content_provider,
const std::string &  content_type,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14635 of file httplib.h.

◆ Put() [20/21]

Result httplib::ClientImpl::Put ( const std::string &  path,
size_t  content_length,
ContentProvider  content_provider,
const std::string &  content_type,
ContentReceiver  content_receiver,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14625 of file httplib.h.

◆ Put() [21/21]

Result httplib::ClientImpl::Put ( const std::string &  path,
size_t  content_length,
ContentProvider  content_provider,
const std::string &  content_type,
UploadProgress  progress = nullptr 
)
inline

Definition at line 14616 of file httplib.h.

◆ send() [1/2]

Result httplib::ClientImpl::send ( const Request &  req)
inline

Definition at line 12830 of file httplib.h.

◆ send() [2/2]

bool httplib::ClientImpl::send ( Request &  req,
Response &  res,
Error &  error 
)
inline

Definition at line 12682 of file httplib.h.

◆ set_address_family()

void httplib::ClientImpl::set_address_family ( int  family)
inline

Definition at line 15250 of file httplib.h.

◆ set_basic_auth()

void httplib::ClientImpl::set_basic_auth ( const std::string &  username,
const std::string &  password 
)
inline

Definition at line 15197 of file httplib.h.

◆ set_bearer_token_auth()

void httplib::ClientImpl::set_bearer_token_auth ( const std::string &  token)
inline

Definition at line 15204 of file httplib.h.

◆ set_compress()

void httplib::ClientImpl::set_compress ( bool  on)
inline

Definition at line 15270 of file httplib.h.

◆ set_connection_timeout() [1/2]

template<class Rep , class Period >
void httplib::ClientImpl::set_connection_timeout ( const std::chrono::duration< Rep, Period > &  duration)
inline

Definition at line 2646 of file httplib.h.

◆ set_connection_timeout() [2/2]

void httplib::ClientImpl::set_connection_timeout ( time_t  sec,
time_t  usec = 0 
)
inline

Definition at line 15174 of file httplib.h.

◆ set_decompress()

void httplib::ClientImpl::set_decompress ( bool  on)
inline

Definition at line 15275 of file httplib.h.

◆ set_default_headers()

void httplib::ClientImpl::set_default_headers ( Headers  headers)
inline

Definition at line 15239 of file httplib.h.

◆ set_error_logger()

void httplib::ClientImpl::set_error_logger ( ErrorLogger  error_logger)
inline

Definition at line 15390 of file httplib.h.

◆ set_follow_location()

void httplib::ClientImpl::set_follow_location ( bool  on)
inline

Definition at line 15223 of file httplib.h.

◆ set_header_writer()

void httplib::ClientImpl::set_header_writer ( std::function< ssize_t(Stream &, Headers &)> const &  writer)
inline

Definition at line 15244 of file httplib.h.

◆ set_hostname_addr_map()

void httplib::ClientImpl::set_hostname_addr_map ( std::map< std::string, std::string >  addr_map)
inline

Definition at line 15234 of file httplib.h.

◆ set_interface()

void httplib::ClientImpl::set_interface ( const std::string &  intf)
inline

Definition at line 15280 of file httplib.h.

◆ set_ipv6_v6only()

void httplib::ClientImpl::set_ipv6_v6only ( bool  on)
inline

Definition at line 15260 of file httplib.h.

◆ set_keep_alive()

void httplib::ClientImpl::set_keep_alive ( bool  on)
inline

Definition at line 15218 of file httplib.h.

◆ set_logger()

void httplib::ClientImpl::set_logger ( Logger  logger)
inline

Definition at line 15385 of file httplib.h.

◆ set_max_timeout() [1/2]

template<class Rep , class Period >
void httplib::ClientImpl::set_max_timeout ( const std::chrono::duration< Rep, Period > &  duration)
inline

Definition at line 2678 of file httplib.h.

◆ set_max_timeout() [2/2]

void httplib::ClientImpl::set_max_timeout ( time_t  msec)
inline

Definition at line 15192 of file httplib.h.

◆ set_path_encode()

void httplib::ClientImpl::set_path_encode ( bool  on)
inline

Definition at line 15228 of file httplib.h.

◆ set_proxy()

void httplib::ClientImpl::set_proxy ( const std::string &  host,
int  port 
)
inline

Definition at line 15285 of file httplib.h.

◆ set_proxy_basic_auth()

void httplib::ClientImpl::set_proxy_basic_auth ( const std::string &  username,
const std::string &  password 
)
inline

Definition at line 15291 of file httplib.h.

◆ set_proxy_bearer_token_auth()

void httplib::ClientImpl::set_proxy_bearer_token_auth ( const std::string &  token)
inline

Definition at line 15298 of file httplib.h.

◆ set_read_timeout() [1/2]

template<class Rep , class Period >
void httplib::ClientImpl::set_read_timeout ( const std::chrono::duration< Rep, Period > &  duration)
inline

Definition at line 2656 of file httplib.h.

◆ set_read_timeout() [2/2]

void httplib::ClientImpl::set_read_timeout ( time_t  sec,
time_t  usec = 0 
)
inline

Definition at line 15180 of file httplib.h.

◆ set_socket_options()

void httplib::ClientImpl::set_socket_options ( SocketOptions  socket_options)
inline

Definition at line 15265 of file httplib.h.

◆ set_tcp_nodelay()

void httplib::ClientImpl::set_tcp_nodelay ( bool  on)
inline

Definition at line 15255 of file httplib.h.

◆ set_write_timeout() [1/2]

template<class Rep , class Period >
void httplib::ClientImpl::set_write_timeout ( const std::chrono::duration< Rep, Period > &  duration)
inline

Definition at line 2667 of file httplib.h.

◆ set_write_timeout() [2/2]

void httplib::ClientImpl::set_write_timeout ( time_t  sec,
time_t  usec = 0 
)
inline

Definition at line 15186 of file httplib.h.

◆ shutdown_socket()

void httplib::ClientImpl::shutdown_socket ( Socket &  socket) const
inlineprotected

Definition at line 12599 of file httplib.h.

◆ shutdown_ssl()

void httplib::ClientImpl::shutdown_ssl ( Socket &  socket,
bool  shutdown_gracefully 
)
inlineprotectedvirtual

Definition at line 12590 of file httplib.h.

◆ socket()

socket_t httplib::ClientImpl::socket ( ) const
inline

Definition at line 15169 of file httplib.h.

◆ stop()

void httplib::ClientImpl::stop ( )
inline

Definition at line 15128 of file httplib.h.

◆ write_content_with_provider()

bool httplib::ClientImpl::write_content_with_provider ( Stream &  strm,
const Request &  req,
Error &  error 
) const
inlineprotected

Definition at line 13632 of file httplib.h.

Member Data Documentation

◆ addr_map_

std::map<std::string, std::string> httplib::ClientImpl::addr_map_
protected

Definition at line 1961 of file httplib.h.

◆ address_family_

int httplib::ClientImpl::address_family_ = AF_UNSPEC
protected

Definition at line 1995 of file httplib.h.

◆ basic_auth_password_

std::string httplib::ClientImpl::basic_auth_password_
protected

Definition at line 1983 of file httplib.h.

◆ basic_auth_username_

std::string httplib::ClientImpl::basic_auth_username_
protected

Definition at line 1982 of file httplib.h.

◆ bearer_token_auth_token_

std::string httplib::ClientImpl::bearer_token_auth_token_
protected

Definition at line 1984 of file httplib.h.

◆ client_cert_path_

std::string httplib::ClientImpl::client_cert_path_
protected

Definition at line 1971 of file httplib.h.

◆ client_key_path_

std::string httplib::ClientImpl::client_key_path_
protected

Definition at line 1972 of file httplib.h.

◆ compress_

bool httplib::ClientImpl::compress_ = false
protected

Definition at line 2000 of file httplib.h.

◆ connection_timeout_sec_

time_t httplib::ClientImpl::connection_timeout_sec_ = CPPHTTPLIB_CONNECTION_TIMEOUT_SECOND
protected

Definition at line 1974 of file httplib.h.

◆ connection_timeout_usec_

time_t httplib::ClientImpl::connection_timeout_usec_ = CPPHTTPLIB_CONNECTION_TIMEOUT_USECOND
protected

Definition at line 1975 of file httplib.h.

◆ decompress_

bool httplib::ClientImpl::decompress_ = true
protected

Definition at line 2001 of file httplib.h.

◆ default_headers_

Headers httplib::ClientImpl::default_headers_
protected

Definition at line 1964 of file httplib.h.

◆ error_logger_

ErrorLogger httplib::ClientImpl::error_logger_
protected

Definition at line 2031 of file httplib.h.

◆ follow_location_

bool httplib::ClientImpl::follow_location_ = false
protected

Definition at line 1991 of file httplib.h.

◆ header_writer_

std::function<ssize_t(Stream &, Headers &)> httplib::ClientImpl::header_writer_
protected
Initial value:
=
ssize_t write_headers(Stream &strm, const Headers &headers)
Definition httplib.h:7171

Definition at line 1967 of file httplib.h.

◆ host_

const std::string httplib::ClientImpl::host_
protected

Definition at line 1947 of file httplib.h.

◆ interface_

std::string httplib::ClientImpl::interface_
protected

Definition at line 2003 of file httplib.h.

◆ ipv6_v6only_

bool httplib::ClientImpl::ipv6_v6only_ = CPPHTTPLIB_IPV6_V6ONLY
protected

Definition at line 1997 of file httplib.h.

◆ keep_alive_

bool httplib::ClientImpl::keep_alive_ = false
protected

Definition at line 1990 of file httplib.h.

◆ logger_

Logger httplib::ClientImpl::logger_
protected

Definition at line 2030 of file httplib.h.

◆ logger_mutex_

std::mutex httplib::ClientImpl::logger_mutex_
mutableprotected

Definition at line 2029 of file httplib.h.

◆ max_timeout_msec_

time_t httplib::ClientImpl::max_timeout_msec_ = CPPHTTPLIB_CLIENT_MAX_TIMEOUT_MSECOND
protected

Definition at line 1980 of file httplib.h.

◆ path_encode_

bool httplib::ClientImpl::path_encode_ = true
protected

Definition at line 1993 of file httplib.h.

◆ port_

const int httplib::ClientImpl::port_
protected

Definition at line 1948 of file httplib.h.

◆ proxy_basic_auth_password_

std::string httplib::ClientImpl::proxy_basic_auth_password_
protected

Definition at line 2009 of file httplib.h.

◆ proxy_basic_auth_username_

std::string httplib::ClientImpl::proxy_basic_auth_username_
protected

Definition at line 2008 of file httplib.h.

◆ proxy_bearer_token_auth_token_

std::string httplib::ClientImpl::proxy_bearer_token_auth_token_
protected

Definition at line 2010 of file httplib.h.

◆ proxy_host_

std::string httplib::ClientImpl::proxy_host_
protected

Definition at line 2005 of file httplib.h.

◆ proxy_port_

int httplib::ClientImpl::proxy_port_ = -1
protected

Definition at line 2006 of file httplib.h.

◆ read_timeout_sec_

time_t httplib::ClientImpl::read_timeout_sec_ = CPPHTTPLIB_CLIENT_READ_TIMEOUT_SECOND
protected

Definition at line 1976 of file httplib.h.

◆ read_timeout_usec_

time_t httplib::ClientImpl::read_timeout_usec_ = CPPHTTPLIB_CLIENT_READ_TIMEOUT_USECOND
protected

Definition at line 1977 of file httplib.h.

◆ request_mutex_

std::recursive_mutex httplib::ClientImpl::request_mutex_
protected

Definition at line 1953 of file httplib.h.

◆ socket_

Socket httplib::ClientImpl::socket_
protected

Definition at line 1951 of file httplib.h.

◆ socket_mutex_

std::mutex httplib::ClientImpl::socket_mutex_
mutableprotected

Definition at line 1952 of file httplib.h.

◆ socket_options_

SocketOptions httplib::ClientImpl::socket_options_ = nullptr
protected

Definition at line 1998 of file httplib.h.

◆ socket_requests_are_from_thread_

std::thread::id httplib::ClientImpl::socket_requests_are_from_thread_ = std::thread::id()
protected

Definition at line 1957 of file httplib.h.

◆ socket_requests_in_flight_

size_t httplib::ClientImpl::socket_requests_in_flight_ = 0
protected

Definition at line 1956 of file httplib.h.

◆ socket_should_be_closed_when_request_is_done_

bool httplib::ClientImpl::socket_should_be_closed_when_request_is_done_ = false
protected

Definition at line 1958 of file httplib.h.

◆ tcp_nodelay_

bool httplib::ClientImpl::tcp_nodelay_ = CPPHTTPLIB_TCP_NODELAY
protected

Definition at line 1996 of file httplib.h.

◆ write_timeout_sec_

time_t httplib::ClientImpl::write_timeout_sec_ = CPPHTTPLIB_CLIENT_WRITE_TIMEOUT_SECOND
protected

Definition at line 1978 of file httplib.h.

◆ write_timeout_usec_

time_t httplib::ClientImpl::write_timeout_usec_ = CPPHTTPLIB_CLIENT_WRITE_TIMEOUT_USECOND
protected

Definition at line 1979 of file httplib.h.


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