Client Class Reference

#include <RobotAPI/libraries/armem/server/ltm/detail/mixins/util/httplib.h>

Public Member Functions

 Client (Client &&)=default
 
 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 (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)
 
Result Delete (const std::string &path)
 
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)
 
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 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 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 Get (const std::string &path)
 
Result Get (const std::string &path, const Headers &headers)
 
Result Get (const std::string &path, const Headers &headers, ContentReceiver content_receiver)
 
Result Get (const std::string &path, const Headers &headers, ContentReceiver content_receiver, Progress progress)
 
Result Get (const std::string &path, const Headers &headers, Progress progress)
 
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, const Params &params, const Headers &headers, ContentReceiver content_receiver, Progress progress=nullptr)
 
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, ResponseHandler response_handler, ContentReceiver content_receiver, Progress progress=nullptr)
 
Result Get (const std::string &path, ContentReceiver content_receiver)
 
Result Get (const std::string &path, ContentReceiver content_receiver, Progress progress)
 
Result Get (const std::string &path, Progress progress)
 
Result Get (const std::string &path, ResponseHandler response_handler, ContentReceiver content_receiver)
 
Result Get (const std::string &path, ResponseHandler response_handler, ContentReceiver content_receiver, Progress progress)
 
Result Head (const std::string &path)
 
Result Head (const std::string &path, const Headers &headers)
 
std::string host () const
 
size_t is_socket_open () const
 
bool is_valid () const
 
Clientoperator= (Client &&)=default
 
Result Options (const std::string &path)
 
Result Options (const std::string &path, const Headers &headers)
 
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 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, const Headers &headers, 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 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, ContentProviderWithoutLength content_provider, const std::string &content_type)
 
Result Patch (const std::string &path, size_t content_length, ContentProvider content_provider, const std::string &content_type)
 
int port () const
 
Result Post (const std::string &path)
 
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)
 
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 Headers &headers, const MultipartFormDataItems &items)
 
Result Post (const std::string &path, const Headers &headers, const MultipartFormDataItems &items, const MultipartFormDataProviderItems &provider_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 Params &params)
 
Result Post (const std::string &path, const Headers &headers, const Params &params, 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, const Headers &headers, 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 MultipartFormDataItems &items)
 
Result Post (const std::string &path, const Params &params)
 
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, ContentProviderWithoutLength content_provider, const std::string &content_type)
 
Result Post (const std::string &path, size_t content_length, ContentProvider content_provider, const std::string &content_type)
 
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 Headers &headers, const MultipartFormDataItems &items)
 
Result Put (const std::string &path, const Headers &headers, const MultipartFormDataItems &items, const MultipartFormDataProviderItems &provider_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 Params &params)
 
Result Put (const std::string &path, const Headers &headers, const Params &params, 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, const Headers &headers, 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 MultipartFormDataItems &items)
 
Result Put (const std::string &path, const Params &params)
 
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, ContentProviderWithoutLength content_provider, const std::string &content_type)
 
Result Put (const std::string &path, size_t content_length, ContentProvider content_provider, const std::string &content_type)
 
Result send (const Request &req)
 
bool send (Request &req, Response &res, Error &error)
 
void set_address_family (int family)
 
void set_basic_auth (const std::string &username, const std::string &password)
 
void set_bearer_token_auth (const std::string &token)
 
void set_compress (bool on)
 
template<class Rep , class Period >
void set_connection_timeout (const std::chrono::duration< Rep, Period > &duration)
 
void set_connection_timeout (time_t sec, time_t usec=0)
 
void set_decompress (bool on)
 
void set_default_headers (Headers headers)
 
void set_follow_location (bool on)
 
void set_header_writer (std::function< ssize_t(Stream &, Headers &)> const &writer)
 
void set_hostname_addr_map (std::map< std::string, std::string > addr_map)
 
void set_interface (const std::string &intf)
 
void set_keep_alive (bool on)
 
void set_logger (Logger logger)
 
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)
 
template<class Rep , class Period >
void set_read_timeout (const std::chrono::duration< Rep, Period > &duration)
 
void set_read_timeout (time_t sec, time_t usec=0)
 
void set_socket_options (SocketOptions socket_options)
 
void set_tcp_nodelay (bool on)
 
void set_url_encode (bool on)
 
template<class Rep , class Period >
void set_write_timeout (const std::chrono::duration< Rep, Period > &duration)
 
void set_write_timeout (time_t sec, time_t usec=0)
 
socket_t socket () const
 
void stop ()
 
 ~Client ()
 

Detailed Description

Definition at line 1618 of file httplib.h.

Constructor & Destructor Documentation

◆ Client() [1/5]

Client ( const std::string &  scheme_host_port)
inlineexplicit

Definition at line 9657 of file httplib.h.

◆ Client() [2/5]

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

Definition at line 9660 of file httplib.h.

+ Here is the call graph for this function:

◆ Client() [3/5]

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

Definition at line 9708 of file httplib.h.

◆ Client() [4/5]

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

Definition at line 9711 of file httplib.h.

◆ Client() [5/5]

Client ( Client &&  )
default

◆ ~Client()

~Client ( )
inlinedefault

Member Function Documentation

◆ Delete() [1/10]

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

Definition at line 10045 of file httplib.h.

◆ Delete() [2/10]

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

Definition at line 10051 of file httplib.h.

◆ Delete() [3/10]

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

Definition at line 10056 of file httplib.h.

◆ Delete() [4/10]

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

Definition at line 10048 of file httplib.h.

◆ Delete() [5/10]

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

Definition at line 10062 of file httplib.h.

◆ Delete() [6/10]

Result 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 10067 of file httplib.h.

◆ Delete() [7/10]

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

Definition at line 10083 of file httplib.h.

◆ Delete() [8/10]

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

Definition at line 10088 of file httplib.h.

◆ Delete() [9/10]

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

Definition at line 10074 of file httplib.h.

◆ Delete() [10/10]

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

Definition at line 10078 of file httplib.h.

◆ Get() [1/15]

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

Definition at line 9723 of file httplib.h.

◆ Get() [2/15]

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

Definition at line 9724 of file httplib.h.

◆ Get() [3/15]

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

Definition at line 9738 of file httplib.h.

◆ Get() [4/15]

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

Definition at line 9746 of file httplib.h.

◆ Get() [5/15]

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

Definition at line 9730 of file httplib.h.

◆ Get() [6/15]

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

Definition at line 9757 of file httplib.h.

◆ Get() [7/15]

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

Definition at line 9769 of file httplib.h.

◆ Get() [8/15]

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

Definition at line 9779 of file httplib.h.

◆ Get() [9/15]

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

Definition at line 9775 of file httplib.h.

◆ Get() [10/15]

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

Definition at line 9785 of file httplib.h.

◆ Get() [11/15]

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

Definition at line 9734 of file httplib.h.

◆ Get() [12/15]

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

Definition at line 9742 of file httplib.h.

◆ Get() [13/15]

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

Definition at line 9727 of file httplib.h.

◆ Get() [14/15]

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

Definition at line 9751 of file httplib.h.

◆ Get() [15/15]

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

Definition at line 9763 of file httplib.h.

◆ Head() [1/2]

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

Definition at line 9793 of file httplib.h.

◆ Head() [2/2]

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

Definition at line 9794 of file httplib.h.

◆ host()

std::string host ( ) const
inline

Definition at line 10109 of file httplib.h.

+ Here is the caller graph for this function:

◆ is_socket_open()

size_t is_socket_open ( ) const
inline

Definition at line 10113 of file httplib.h.

◆ is_valid()

bool is_valid ( ) const
inline

Definition at line 9719 of file httplib.h.

◆ operator=()

Client& operator= ( Client &&  )
default

◆ Options() [1/2]

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

Definition at line 10094 of file httplib.h.

◆ Options() [2/2]

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

Definition at line 10097 of file httplib.h.

◆ Patch() [1/13]

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

Definition at line 9976 of file httplib.h.

◆ Patch() [2/13]

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

Definition at line 9979 of file httplib.h.

◆ Patch() [3/13]

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

Definition at line 9984 of file httplib.h.

◆ Patch() [4/13]

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

Definition at line 9990 of file httplib.h.

◆ Patch() [5/13]

Result 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 9995 of file httplib.h.

◆ Patch() [6/13]

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

Definition at line 10011 of file httplib.h.

◆ Patch() [7/13]

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

Definition at line 10016 of file httplib.h.

◆ Patch() [8/13]

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

Definition at line 10040 of file httplib.h.

◆ Patch() [9/13]

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

Definition at line 10033 of file httplib.h.

◆ Patch() [10/13]

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

Definition at line 10002 of file httplib.h.

◆ Patch() [11/13]

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

Definition at line 10006 of file httplib.h.

◆ Patch() [12/13]

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

Definition at line 10028 of file httplib.h.

◆ Patch() [13/13]

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

Definition at line 10022 of file httplib.h.

◆ port()

int port ( ) const
inline

Definition at line 10111 of file httplib.h.

+ Here is the caller graph for this function:

◆ Post() [1/20]

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

Definition at line 9798 of file httplib.h.

◆ Post() [2/20]

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

Definition at line 9802 of file httplib.h.

◆ Post() [3/20]

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

Definition at line 9799 of file httplib.h.

◆ Post() [4/20]

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

Definition at line 9807 of file httplib.h.

◆ Post() [5/20]

Result 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 9812 of file httplib.h.

◆ Post() [6/20]

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

Definition at line 9874 of file httplib.h.

◆ Post() [7/20]

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

Definition at line 9884 of file httplib.h.

◆ Post() [8/20]

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

Definition at line 9878 of file httplib.h.

◆ Post() [9/20]

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

Definition at line 9862 of file httplib.h.

◆ Post() [10/20]

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

Definition at line 9866 of file httplib.h.

◆ Post() [11/20]

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

Definition at line 9826 of file httplib.h.

◆ Post() [12/20]

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

Definition at line 9831 of file httplib.h.

◆ Post() [13/20]

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

Definition at line 9854 of file httplib.h.

◆ Post() [14/20]

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

Definition at line 9847 of file httplib.h.

◆ Post() [15/20]

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

Definition at line 9870 of file httplib.h.

◆ Post() [16/20]

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

Definition at line 9859 of file httplib.h.

◆ Post() [17/20]

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

Definition at line 9818 of file httplib.h.

◆ Post() [18/20]

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

Definition at line 9822 of file httplib.h.

◆ Post() [19/20]

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

Definition at line 9842 of file httplib.h.

◆ Post() [20/20]

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

Definition at line 9836 of file httplib.h.

◆ Put() [1/19]

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

Definition at line 9889 of file httplib.h.

◆ Put() [2/19]

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

Definition at line 9890 of file httplib.h.

◆ Put() [3/19]

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

Definition at line 9895 of file httplib.h.

◆ Put() [4/19]

Result 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 9900 of file httplib.h.

◆ Put() [5/19]

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

Definition at line 9961 of file httplib.h.

◆ Put() [6/19]

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

Definition at line 9971 of file httplib.h.

◆ Put() [7/19]

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

Definition at line 9965 of file httplib.h.

◆ Put() [8/19]

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

Definition at line 9949 of file httplib.h.

◆ Put() [9/19]

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

Definition at line 9953 of file httplib.h.

◆ Put() [10/19]

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

Definition at line 9913 of file httplib.h.

◆ Put() [11/19]

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

Definition at line 9918 of file httplib.h.

◆ Put() [12/19]

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

Definition at line 9941 of file httplib.h.

◆ Put() [13/19]

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

Definition at line 9934 of file httplib.h.

◆ Put() [14/19]

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

Definition at line 9957 of file httplib.h.

◆ Put() [15/19]

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

Definition at line 9946 of file httplib.h.

◆ Put() [16/19]

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

Definition at line 9905 of file httplib.h.

◆ Put() [17/19]

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

Definition at line 9909 of file httplib.h.

◆ Put() [18/19]

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

Definition at line 9929 of file httplib.h.

◆ Put() [19/19]

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

Definition at line 9923 of file httplib.h.

◆ send() [1/2]

Result send ( const Request req)
inline

Definition at line 10105 of file httplib.h.

◆ send() [2/2]

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

Definition at line 10101 of file httplib.h.

◆ set_address_family()

void set_address_family ( int  family)
inline

Definition at line 10131 of file httplib.h.

◆ set_basic_auth()

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

Definition at line 10153 of file httplib.h.

◆ set_bearer_token_auth()

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

Definition at line 10157 of file httplib.h.

◆ set_compress()

void set_compress ( bool  on)
inline

Definition at line 10174 of file httplib.h.

◆ set_connection_timeout() [1/2]

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

Definition at line 2227 of file httplib.h.

◆ set_connection_timeout() [2/2]

void set_connection_timeout ( time_t  sec,
time_t  usec = 0 
)
inline

Definition at line 10141 of file httplib.h.

◆ set_decompress()

void set_decompress ( bool  on)
inline

Definition at line 10176 of file httplib.h.

◆ set_default_headers()

void set_default_headers ( Headers  headers)
inline

Definition at line 10122 of file httplib.h.

◆ set_follow_location()

void set_follow_location ( bool  on)
inline

Definition at line 10168 of file httplib.h.

◆ set_header_writer()

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

Definition at line 10126 of file httplib.h.

◆ set_hostname_addr_map()

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

Definition at line 10118 of file httplib.h.

◆ set_interface()

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

Definition at line 10178 of file httplib.h.

◆ set_keep_alive()

void set_keep_alive ( bool  on)
inline

Definition at line 10167 of file httplib.h.

◆ set_logger()

void set_logger ( Logger  logger)
inline

Definition at line 10214 of file httplib.h.

◆ set_proxy()

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

Definition at line 10182 of file httplib.h.

+ Here is the call graph for this function:

◆ set_proxy_basic_auth()

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

Definition at line 10185 of file httplib.h.

◆ set_proxy_bearer_token_auth()

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

Definition at line 10189 of file httplib.h.

◆ set_read_timeout() [1/2]

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

Definition at line 2234 of file httplib.h.

◆ set_read_timeout() [2/2]

void set_read_timeout ( time_t  sec,
time_t  usec = 0 
)
inline

Definition at line 10145 of file httplib.h.

◆ set_socket_options()

void set_socket_options ( SocketOptions  socket_options)
inline

Definition at line 10137 of file httplib.h.

◆ set_tcp_nodelay()

void set_tcp_nodelay ( bool  on)
inline

Definition at line 10135 of file httplib.h.

◆ set_url_encode()

void set_url_encode ( bool  on)
inline

Definition at line 10172 of file httplib.h.

◆ set_write_timeout() [1/2]

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

Definition at line 2240 of file httplib.h.

◆ set_write_timeout() [2/2]

void set_write_timeout ( time_t  sec,
time_t  usec = 0 
)
inline

Definition at line 10149 of file httplib.h.

◆ socket()

socket_t socket ( ) const
inline

Definition at line 10115 of file httplib.h.

◆ stop()

void stop ( )
inline

Definition at line 10107 of file httplib.h.


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