#include <http_client.h>
◆ HttpClient()
HttpClient::HttpClient |
( |
IOContext & |
io_ctx, |
|
|
const std::string & |
hostname, |
|
|
uint16_t |
port |
|
) |
| |
|
inline |
◆ ~HttpClient()
HttpClient::~HttpClient |
( |
| ) |
|
|
virtualdefault |
◆ error_msg()
std::string HttpClient::error_msg |
( |
| ) |
const |
current error message.
- See also
- : HttpClientConnectionBase::error_msg()
◆ hostname()
std::string HttpClient::hostname |
( |
| ) |
const |
|
inline |
◆ make_connection()
◆ make_request()
initiate a request on the bound IOContext.
allows to send out multiple requests on different clients and wait for them in parallel.
◆ make_request_sync()
make a request and wait for the response.
◆ operator bool()
HttpClient::operator bool |
( |
| ) |
const |
check if connection had an error.
see: error_msg()
◆ port()
uint16_t HttpClient::port |
( |
| ) |
const |
|
inline |
◆ conn_
◆ hostname_
const std::string HttpClient::hostname_ |
|
protected |
◆ io_ctx_
◆ port_
uint16_t HttpClient::port_ |
|
protected |
The documentation for this class was generated from the following files: