Project Alice
Loading...
Searching...
No Matches
httplib::Client Class Reference

#include <httplib.h>

Public Member Functions

 Client (const std::string &scheme_host_port)
 
 Client (const std::string &scheme_host_port, const std::string &client_cert_path, const std::string &client_key_path)
 
 Client (const std::string &host, int port)
 
 Client (const std::string &host, int port, const std::string &client_cert_path, const std::string &client_key_path)
 
 Client (Client &&)=default
 
Clientoperator= (Client &&)=default
 
 ~Client ()
 
bool is_valid () const
 
Result Get (const std::string &path)
 
Result Get (const std::string &path, const Headers &headers)
 
Result Get (const std::string &path, Progress progress)
 
Result Get (const std::string &path, const Headers &headers, Progress progress)
 
Result Get (const std::string &path, ContentReceiver content_receiver)
 
Result Get (const std::string &path, const Headers &headers, ContentReceiver content_receiver)
 
Result Get (const std::string &path, ContentReceiver content_receiver, Progress progress)
 
Result Get (const std::string &path, const Headers &headers, ContentReceiver content_receiver, Progress progress)
 
Result Get (const std::string &path, ResponseHandler response_handler, ContentReceiver content_receiver)
 
Result Get (const std::string &path, const Headers &headers, ResponseHandler response_handler, ContentReceiver content_receiver)
 
Result Get (const std::string &path, const Headers &headers, ResponseHandler response_handler, ContentReceiver content_receiver, Progress progress)
 
Result Get (const std::string &path, ResponseHandler response_handler, ContentReceiver content_receiver, Progress progress)
 
Result Get (const std::string &path, const Params &params, const Headers &headers, Progress progress=nullptr)
 
Result Get (const std::string &path, const Params &params, const Headers &headers, ContentReceiver content_receiver, Progress progress=nullptr)
 
Result Get (const std::string &path, const Params &params, const Headers &headers, ResponseHandler response_handler, ContentReceiver content_receiver, Progress 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 Headers &headers)
 
Result Post (const std::string &path, const char *body, size_t content_length, const std::string &content_type)
 
Result Post (const std::string &path, const Headers &headers, const char *body, size_t content_length, const std::string &content_type)
 
Result Post (const std::string &path, const Headers &headers, const char *body, size_t content_length, const std::string &content_type, Progress progress)
 
Result Post (const std::string &path, const std::string &body, const std::string &content_type)
 
Result Post (const std::string &path, const std::string &body, const std::string &content_type, Progress progress)
 
Result Post (const std::string &path, const Headers &headers, const std::string &body, const std::string &content_type)
 
Result Post (const std::string &path, const Headers &headers, const std::string &body, const std::string &content_type, Progress progress)
 
Result Post (const std::string &path, size_t content_length, ContentProvider content_provider, const std::string &content_type)
 
Result Post (const std::string &path, ContentProviderWithoutLength content_provider, const std::string &content_type)
 
Result Post (const std::string &path, const Headers &headers, size_t content_length, ContentProvider content_provider, const std::string &content_type)
 
Result Post (const std::string &path, const Headers &headers, ContentProviderWithoutLength content_provider, const std::string &content_type)
 
Result Post (const std::string &path, const Params &params)
 
Result Post (const std::string &path, const Headers &headers, const Params &params)
 
Result Post (const std::string &path, const Headers &headers, const Params &params, Progress progress)
 
Result Post (const std::string &path, const MultipartFormDataItems &items)
 
Result Post (const std::string &path, const Headers &headers, const MultipartFormDataItems &items)
 
Result Post (const std::string &path, const Headers &headers, const MultipartFormDataItems &items, const std::string &boundary)
 
Result Post (const std::string &path, const Headers &headers, const MultipartFormDataItems &items, const MultipartFormDataProviderItems &provider_items)
 
Result Put (const std::string &path)
 
Result Put (const std::string &path, const char *body, size_t content_length, const std::string &content_type)
 
Result Put (const std::string &path, const Headers &headers, const char *body, size_t content_length, const std::string &content_type)
 
Result Put (const std::string &path, const Headers &headers, const char *body, size_t content_length, const std::string &content_type, Progress progress)
 
Result Put (const std::string &path, const std::string &body, const std::string &content_type)
 
Result Put (const std::string &path, const std::string &body, const std::string &content_type, Progress progress)
 
Result Put (const std::string &path, const Headers &headers, const std::string &body, const std::string &content_type)
 
Result Put (const std::string &path, const Headers &headers, const std::string &body, const std::string &content_type, Progress progress)
 
Result Put (const std::string &path, size_t content_length, ContentProvider content_provider, const std::string &content_type)
 
Result Put (const std::string &path, ContentProviderWithoutLength content_provider, const std::string &content_type)
 
Result Put (const std::string &path, const Headers &headers, size_t content_length, ContentProvider content_provider, const std::string &content_type)
 
Result Put (const std::string &path, const Headers &headers, ContentProviderWithoutLength content_provider, const std::string &content_type)
 
Result Put (const std::string &path, const Params &params)
 
Result Put (const std::string &path, const Headers &headers, const Params &params)
 
Result Put (const std::string &path, const Headers &headers, const Params &params, Progress progress)
 
Result Put (const std::string &path, const MultipartFormDataItems &items)
 
Result Put (const std::string &path, const Headers &headers, const MultipartFormDataItems &items)
 
Result Put (const std::string &path, const Headers &headers, const MultipartFormDataItems &items, const std::string &boundary)
 
Result Put (const std::string &path, const Headers &headers, const MultipartFormDataItems &items, const MultipartFormDataProviderItems &provider_items)
 
Result Patch (const std::string &path)
 
Result Patch (const std::string &path, const char *body, size_t content_length, const std::string &content_type)
 
Result Patch (const std::string &path, const char *body, size_t content_length, const std::string &content_type, Progress progress)
 
Result Patch (const std::string &path, const Headers &headers, const char *body, size_t content_length, const std::string &content_type)
 
Result Patch (const std::string &path, const Headers &headers, const char *body, size_t content_length, const std::string &content_type, Progress progress)
 
Result Patch (const std::string &path, const std::string &body, const std::string &content_type)
 
Result Patch (const std::string &path, const std::string &body, const std::string &content_type, Progress progress)
 
Result Patch (const std::string &path, const Headers &headers, const std::string &body, const std::string &content_type)
 
Result Patch (const std::string &path, const Headers &headers, const std::string &body, const std::string &content_type, Progress progress)
 
Result Patch (const std::string &path, size_t content_length, ContentProvider content_provider, const std::string &content_type)
 
Result Patch (const std::string &path, ContentProviderWithoutLength content_provider, const std::string &content_type)
 
Result Patch (const std::string &path, const Headers &headers, size_t content_length, ContentProvider content_provider, const std::string &content_type)
 
Result Patch (const std::string &path, const Headers &headers, ContentProviderWithoutLength content_provider, const std::string &content_type)
 
Result Delete (const std::string &path)
 
Result Delete (const std::string &path, const Headers &headers)
 
Result Delete (const std::string &path, const char *body, size_t content_length, const std::string &content_type)
 
Result Delete (const std::string &path, const char *body, size_t content_length, const std::string &content_type, Progress progress)
 
Result Delete (const std::string &path, const Headers &headers, const char *body, size_t content_length, const std::string &content_type)
 
Result Delete (const std::string &path, const Headers &headers, const char *body, size_t content_length, const std::string &content_type, Progress progress)
 
Result Delete (const std::string &path, const std::string &body, const std::string &content_type)
 
Result Delete (const std::string &path, const std::string &body, const std::string &content_type, Progress progress)
 
Result Delete (const std::string &path, const Headers &headers, const std::string &body, const std::string &content_type)
 
Result Delete (const std::string &path, const Headers &headers, const std::string &body, const std::string &content_type, Progress progress)
 
Result Options (const std::string &path)
 
Result Options (const std::string &path, const Headers &headers)
 
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_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_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_url_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)
 

Detailed Description

Definition at line 1625 of file httplib.h.

Constructor & Destructor Documentation

◆ Client() [1/5]

httplib::Client::Client ( const std::string &  scheme_host_port)
inlineexplicit

Definition at line 9749 of file httplib.h.

◆ Client() [2/5]

httplib::Client::Client ( const std::string &  scheme_host_port,
const std::string &  client_cert_path,
const std::string &  client_key_path 
)
inlineexplicit

Definition at line 9752 of file httplib.h.

Here is the call graph for this function:

◆ Client() [3/5]

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

Definition at line 9800 of file httplib.h.

◆ Client() [4/5]

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

Definition at line 9803 of file httplib.h.

◆ Client() [5/5]

httplib::Client::Client ( Client &&  )
default

◆ ~Client()

httplib::Client::~Client ( )
inlinedefault

Member Function Documentation

◆ Delete() [1/10]

Result httplib::Client::Delete ( const std::string &  path)
inline

Definition at line 10137 of file httplib.h.

◆ Delete() [2/10]

Result httplib::Client::Delete ( const std::string &  path,
const char *  body,
size_t  content_length,
const std::string &  content_type 
)
inline

Definition at line 10143 of file httplib.h.

◆ Delete() [3/10]

Result httplib::Client::Delete ( const std::string &  path,
const char *  body,
size_t  content_length,
const std::string &  content_type,
Progress  progress 
)
inline

Definition at line 10148 of file httplib.h.

◆ Delete() [4/10]

Result httplib::Client::Delete ( const std::string &  path,
const Headers headers 
)
inline

Definition at line 10140 of file httplib.h.

◆ Delete() [5/10]

Result httplib::Client::Delete ( const std::string &  path,
const Headers headers,
const char *  body,
size_t  content_length,
const std::string &  content_type 
)
inline

Definition at line 10154 of file httplib.h.

◆ Delete() [6/10]

Result httplib::Client::Delete ( const std::string &  path,
const Headers headers,
const char *  body,
size_t  content_length,
const std::string &  content_type,
Progress  progress 
)
inline

Definition at line 10159 of file httplib.h.

◆ Delete() [7/10]

Result httplib::Client::Delete ( const std::string &  path,
const Headers headers,
const std::string &  body,
const std::string &  content_type 
)
inline

Definition at line 10175 of file httplib.h.

◆ Delete() [8/10]

Result httplib::Client::Delete ( const std::string &  path,
const Headers headers,
const std::string &  body,
const std::string &  content_type,
Progress  progress 
)
inline

Definition at line 10180 of file httplib.h.

◆ Delete() [9/10]

Result httplib::Client::Delete ( const std::string &  path,
const std::string &  body,
const std::string &  content_type 
)
inline

Definition at line 10166 of file httplib.h.

◆ Delete() [10/10]

Result httplib::Client::Delete ( const std::string &  path,
const std::string &  body,
const std::string &  content_type,
Progress  progress 
)
inline

Definition at line 10170 of file httplib.h.

◆ Get() [1/15]

Result httplib::Client::Get ( const std::string &  path)
inline

Definition at line 9815 of file httplib.h.

◆ Get() [2/15]

Result httplib::Client::Get ( const std::string &  path,
const Headers headers 
)
inline

Definition at line 9816 of file httplib.h.

◆ Get() [3/15]

Result httplib::Client::Get ( const std::string &  path,
const Headers headers,
ContentReceiver  content_receiver 
)
inline

Definition at line 9830 of file httplib.h.

◆ Get() [4/15]

Result httplib::Client::Get ( const std::string &  path,
const Headers headers,
ContentReceiver  content_receiver,
Progress  progress 
)
inline

Definition at line 9838 of file httplib.h.

◆ Get() [5/15]

Result httplib::Client::Get ( const std::string &  path,
const Headers headers,
Progress  progress 
)
inline

Definition at line 9822 of file httplib.h.

◆ Get() [6/15]

Result httplib::Client::Get ( const std::string &  path,
const Headers headers,
ResponseHandler  response_handler,
ContentReceiver  content_receiver 
)
inline

Definition at line 9849 of file httplib.h.

◆ Get() [7/15]

Result httplib::Client::Get ( const std::string &  path,
const Headers headers,
ResponseHandler  response_handler,
ContentReceiver  content_receiver,
Progress  progress 
)
inline

Definition at line 9861 of file httplib.h.

◆ Get() [8/15]

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

Definition at line 9871 of file httplib.h.

◆ Get() [9/15]

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

Definition at line 9867 of file httplib.h.

◆ Get() [10/15]

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

Definition at line 9877 of file httplib.h.

◆ Get() [11/15]

Result httplib::Client::Get ( const std::string &  path,
ContentReceiver  content_receiver 
)
inline

Definition at line 9826 of file httplib.h.

◆ Get() [12/15]

Result httplib::Client::Get ( const std::string &  path,
ContentReceiver  content_receiver,
Progress  progress 
)
inline

Definition at line 9834 of file httplib.h.

◆ Get() [13/15]

Result httplib::Client::Get ( const std::string &  path,
Progress  progress 
)
inline

Definition at line 9819 of file httplib.h.

◆ Get() [14/15]

Result httplib::Client::Get ( const std::string &  path,
ResponseHandler  response_handler,
ContentReceiver  content_receiver 
)
inline

Definition at line 9843 of file httplib.h.

◆ Get() [15/15]

Result httplib::Client::Get ( const std::string &  path,
ResponseHandler  response_handler,
ContentReceiver  content_receiver,
Progress  progress 
)
inline

Definition at line 9855 of file httplib.h.

◆ Head() [1/2]

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

Definition at line 9885 of file httplib.h.

◆ Head() [2/2]

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

Definition at line 9886 of file httplib.h.

◆ host()

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

Definition at line 10201 of file httplib.h.

Here is the caller graph for this function:

◆ is_socket_open()

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

Definition at line 10205 of file httplib.h.

◆ is_valid()

bool httplib::Client::is_valid ( ) const
inline

Definition at line 9811 of file httplib.h.

◆ operator=()

Client & httplib::Client::operator= ( Client &&  )
default

◆ Options() [1/2]

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

Definition at line 10186 of file httplib.h.

◆ Options() [2/2]

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

Definition at line 10189 of file httplib.h.

◆ Patch() [1/13]

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

Definition at line 10068 of file httplib.h.

◆ Patch() [2/13]

Result httplib::Client::Patch ( const std::string &  path,
const char *  body,
size_t  content_length,
const std::string &  content_type 
)
inline

Definition at line 10071 of file httplib.h.

◆ Patch() [3/13]

Result httplib::Client::Patch ( const std::string &  path,
const char *  body,
size_t  content_length,
const std::string &  content_type,
Progress  progress 
)
inline

Definition at line 10076 of file httplib.h.

◆ Patch() [4/13]

Result httplib::Client::Patch ( const std::string &  path,
const Headers headers,
const char *  body,
size_t  content_length,
const std::string &  content_type 
)
inline

Definition at line 10082 of file httplib.h.

◆ Patch() [5/13]

Result httplib::Client::Patch ( const std::string &  path,
const Headers headers,
const char *  body,
size_t  content_length,
const std::string &  content_type,
Progress  progress 
)
inline

Definition at line 10087 of file httplib.h.

◆ Patch() [6/13]

Result httplib::Client::Patch ( const std::string &  path,
const Headers headers,
const std::string &  body,
const std::string &  content_type 
)
inline

Definition at line 10103 of file httplib.h.

◆ Patch() [7/13]

Result httplib::Client::Patch ( const std::string &  path,
const Headers headers,
const std::string &  body,
const std::string &  content_type,
Progress  progress 
)
inline

Definition at line 10108 of file httplib.h.

◆ Patch() [8/13]

Result httplib::Client::Patch ( const std::string &  path,
const Headers headers,
ContentProviderWithoutLength  content_provider,
const std::string &  content_type 
)
inline

Definition at line 10132 of file httplib.h.

◆ Patch() [9/13]

Result httplib::Client::Patch ( const std::string &  path,
const Headers headers,
size_t  content_length,
ContentProvider  content_provider,
const std::string &  content_type 
)
inline

Definition at line 10125 of file httplib.h.

◆ Patch() [10/13]

Result httplib::Client::Patch ( const std::string &  path,
const std::string &  body,
const std::string &  content_type 
)
inline

Definition at line 10094 of file httplib.h.

◆ Patch() [11/13]

Result httplib::Client::Patch ( const std::string &  path,
const std::string &  body,
const std::string &  content_type,
Progress  progress 
)
inline

Definition at line 10098 of file httplib.h.

◆ Patch() [12/13]

Result httplib::Client::Patch ( const std::string &  path,
ContentProviderWithoutLength  content_provider,
const std::string &  content_type 
)
inline

Definition at line 10120 of file httplib.h.

◆ Patch() [13/13]

Result httplib::Client::Patch ( const std::string &  path,
size_t  content_length,
ContentProvider  content_provider,
const std::string &  content_type 
)
inline

Definition at line 10114 of file httplib.h.

◆ port()

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

Definition at line 10203 of file httplib.h.

Here is the caller graph for this function:

◆ Post() [1/20]

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

Definition at line 9890 of file httplib.h.

◆ Post() [2/20]

Result httplib::Client::Post ( const std::string &  path,
const char *  body,
size_t  content_length,
const std::string &  content_type 
)
inline

Definition at line 9894 of file httplib.h.

◆ Post() [3/20]

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

Definition at line 9891 of file httplib.h.

◆ Post() [4/20]

Result httplib::Client::Post ( const std::string &  path,
const Headers headers,
const char *  body,
size_t  content_length,
const std::string &  content_type 
)
inline

Definition at line 9899 of file httplib.h.

◆ Post() [5/20]

Result httplib::Client::Post ( const std::string &  path,
const Headers headers,
const char *  body,
size_t  content_length,
const std::string &  content_type,
Progress  progress 
)
inline

Definition at line 9904 of file httplib.h.

◆ Post() [6/20]

Result httplib::Client::Post ( const std::string &  path,
const Headers headers,
const MultipartFormDataItems items 
)
inline

Definition at line 9966 of file httplib.h.

◆ Post() [7/20]

Result httplib::Client::Post ( const std::string &  path,
const Headers headers,
const MultipartFormDataItems items,
const MultipartFormDataProviderItems provider_items 
)
inline

Definition at line 9976 of file httplib.h.

◆ Post() [8/20]

Result httplib::Client::Post ( const std::string &  path,
const Headers headers,
const MultipartFormDataItems items,
const std::string &  boundary 
)
inline

Definition at line 9970 of file httplib.h.

◆ Post() [9/20]

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

Definition at line 9954 of file httplib.h.

◆ Post() [10/20]

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

Definition at line 9958 of file httplib.h.

◆ Post() [11/20]

Result httplib::Client::Post ( const std::string &  path,
const Headers headers,
const std::string &  body,
const std::string &  content_type 
)
inline

Definition at line 9918 of file httplib.h.

◆ Post() [12/20]

Result httplib::Client::Post ( const std::string &  path,
const Headers headers,
const std::string &  body,
const std::string &  content_type,
Progress  progress 
)
inline

Definition at line 9923 of file httplib.h.

◆ Post() [13/20]

Result httplib::Client::Post ( const std::string &  path,
const Headers headers,
ContentProviderWithoutLength  content_provider,
const std::string &  content_type 
)
inline

Definition at line 9946 of file httplib.h.

◆ Post() [14/20]

Result httplib::Client::Post ( const std::string &  path,
const Headers headers,
size_t  content_length,
ContentProvider  content_provider,
const std::string &  content_type 
)
inline

Definition at line 9939 of file httplib.h.

◆ Post() [15/20]

Result httplib::Client::Post ( const std::string &  path,
const MultipartFormDataItems items 
)
inline

Definition at line 9962 of file httplib.h.

◆ Post() [16/20]

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

Definition at line 9951 of file httplib.h.

◆ Post() [17/20]

Result httplib::Client::Post ( const std::string &  path,
const std::string &  body,
const std::string &  content_type 
)
inline

Definition at line 9910 of file httplib.h.

◆ Post() [18/20]

Result httplib::Client::Post ( const std::string &  path,
const std::string &  body,
const std::string &  content_type,
Progress  progress 
)
inline

Definition at line 9914 of file httplib.h.

◆ Post() [19/20]

Result httplib::Client::Post ( const std::string &  path,
ContentProviderWithoutLength  content_provider,
const std::string &  content_type 
)
inline

Definition at line 9934 of file httplib.h.

◆ Post() [20/20]

Result httplib::Client::Post ( const std::string &  path,
size_t  content_length,
ContentProvider  content_provider,
const std::string &  content_type 
)
inline

Definition at line 9928 of file httplib.h.

◆ Put() [1/19]

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

Definition at line 9981 of file httplib.h.

◆ Put() [2/19]

Result httplib::Client::Put ( const std::string &  path,
const char *  body,
size_t  content_length,
const std::string &  content_type 
)
inline

Definition at line 9982 of file httplib.h.

◆ Put() [3/19]

Result httplib::Client::Put ( const std::string &  path,
const Headers headers,
const char *  body,
size_t  content_length,
const std::string &  content_type 
)
inline

Definition at line 9987 of file httplib.h.

◆ Put() [4/19]

Result httplib::Client::Put ( const std::string &  path,
const Headers headers,
const char *  body,
size_t  content_length,
const std::string &  content_type,
Progress  progress 
)
inline

Definition at line 9992 of file httplib.h.

◆ Put() [5/19]

Result httplib::Client::Put ( const std::string &  path,
const Headers headers,
const MultipartFormDataItems items 
)
inline

Definition at line 10053 of file httplib.h.

◆ Put() [6/19]

Result httplib::Client::Put ( const std::string &  path,
const Headers headers,
const MultipartFormDataItems items,
const MultipartFormDataProviderItems provider_items 
)
inline

Definition at line 10063 of file httplib.h.

◆ Put() [7/19]

Result httplib::Client::Put ( const std::string &  path,
const Headers headers,
const MultipartFormDataItems items,
const std::string &  boundary 
)
inline

Definition at line 10057 of file httplib.h.

◆ Put() [8/19]

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

Definition at line 10041 of file httplib.h.

◆ Put() [9/19]

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

Definition at line 10045 of file httplib.h.

◆ Put() [10/19]

Result httplib::Client::Put ( const std::string &  path,
const Headers headers,
const std::string &  body,
const std::string &  content_type 
)
inline

Definition at line 10005 of file httplib.h.

◆ Put() [11/19]

Result httplib::Client::Put ( const std::string &  path,
const Headers headers,
const std::string &  body,
const std::string &  content_type,
Progress  progress 
)
inline

Definition at line 10010 of file httplib.h.

◆ Put() [12/19]

Result httplib::Client::Put ( const std::string &  path,
const Headers headers,
ContentProviderWithoutLength  content_provider,
const std::string &  content_type 
)
inline

Definition at line 10033 of file httplib.h.

◆ Put() [13/19]

Result httplib::Client::Put ( const std::string &  path,
const Headers headers,
size_t  content_length,
ContentProvider  content_provider,
const std::string &  content_type 
)
inline

Definition at line 10026 of file httplib.h.

◆ Put() [14/19]

Result httplib::Client::Put ( const std::string &  path,
const MultipartFormDataItems items 
)
inline

Definition at line 10049 of file httplib.h.

◆ Put() [15/19]

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

Definition at line 10038 of file httplib.h.

◆ Put() [16/19]

Result httplib::Client::Put ( const std::string &  path,
const std::string &  body,
const std::string &  content_type 
)
inline

Definition at line 9997 of file httplib.h.

◆ Put() [17/19]

Result httplib::Client::Put ( const std::string &  path,
const std::string &  body,
const std::string &  content_type,
Progress  progress 
)
inline

Definition at line 10001 of file httplib.h.

◆ Put() [18/19]

Result httplib::Client::Put ( const std::string &  path,
ContentProviderWithoutLength  content_provider,
const std::string &  content_type 
)
inline

Definition at line 10021 of file httplib.h.

◆ Put() [19/19]

Result httplib::Client::Put ( const std::string &  path,
size_t  content_length,
ContentProvider  content_provider,
const std::string &  content_type 
)
inline

Definition at line 10015 of file httplib.h.

◆ send() [1/2]

Result httplib::Client::send ( const Request req)
inline

Definition at line 10197 of file httplib.h.

◆ send() [2/2]

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

Definition at line 10193 of file httplib.h.

◆ set_address_family()

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

Definition at line 10223 of file httplib.h.

◆ set_basic_auth()

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

Definition at line 10245 of file httplib.h.

◆ set_bearer_token_auth()

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

Definition at line 10249 of file httplib.h.

◆ set_compress()

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

Definition at line 10266 of file httplib.h.

◆ set_connection_timeout() [1/2]

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

Definition at line 2234 of file httplib.h.

◆ set_connection_timeout() [2/2]

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

Definition at line 10233 of file httplib.h.

◆ set_decompress()

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

Definition at line 10268 of file httplib.h.

◆ set_default_headers()

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

Definition at line 10214 of file httplib.h.

◆ set_follow_location()

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

Definition at line 10260 of file httplib.h.

◆ set_header_writer()

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

Definition at line 10218 of file httplib.h.

◆ set_hostname_addr_map()

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

Definition at line 10210 of file httplib.h.

◆ set_interface()

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

Definition at line 10270 of file httplib.h.

◆ set_keep_alive()

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

Definition at line 10259 of file httplib.h.

◆ set_logger()

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

Definition at line 10306 of file httplib.h.

◆ set_proxy()

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

Definition at line 10274 of file httplib.h.

Here is the call graph for this function:

◆ set_proxy_basic_auth()

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

Definition at line 10277 of file httplib.h.

◆ set_proxy_bearer_token_auth()

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

Definition at line 10281 of file httplib.h.

◆ set_read_timeout() [1/2]

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

Definition at line 2241 of file httplib.h.

◆ set_read_timeout() [2/2]

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

Definition at line 10237 of file httplib.h.

◆ set_socket_options()

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

Definition at line 10229 of file httplib.h.

◆ set_tcp_nodelay()

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

Definition at line 10227 of file httplib.h.

◆ set_url_encode()

void httplib::Client::set_url_encode ( bool  on)
inline

Definition at line 10264 of file httplib.h.

◆ set_write_timeout() [1/2]

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

Definition at line 2247 of file httplib.h.

◆ set_write_timeout() [2/2]

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

Definition at line 10241 of file httplib.h.

◆ socket()

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

Definition at line 10207 of file httplib.h.

◆ stop()

void httplib::Client::stop ( )
inline

Definition at line 10199 of file httplib.h.


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