#include <ClientConfiguration.h>
Configuration for an HTTP client (host, port, timeouts, TLS)
◆ ClientConfiguration()
| lintel::ClientConfiguration::ClientConfiguration |
( |
std::string |
host, |
|
|
int32_t |
port, |
|
|
std::chrono::milliseconds |
readTimeOut, |
|
|
std::chrono::milliseconds |
writeTimeOut, |
|
|
std::chrono::milliseconds |
connectionTimeout, |
|
|
std::filesystem::path |
certFile = "", |
|
|
std::filesystem::path |
keyFile = "", |
|
|
std::filesystem::path |
caCertFile = "" |
|
) |
| |
- Parameters
-
| host | remote host |
| port | remote port |
| readTimeOut | read timeout |
| writeTimeOut | write timeout |
| connectionTimeout | connection timeout |
| certFile | optional TLS certificate file |
| keyFile | optional TLS key file |
| caCertFile | optional TLS CA certificate file used to verify the server certificate |
◆ getCaCertFile()
| const std::filesystem::path & lintel::ClientConfiguration::getCaCertFile |
( |
| ) |
const |
- Returns
- the TLS CA certificate file path
◆ getCertFile()
| const std::filesystem::path & lintel::ClientConfiguration::getCertFile |
( |
| ) |
const |
- Returns
- the TLS certificate file path
◆ getConnectionTimeout()
| const std::chrono::milliseconds & lintel::ClientConfiguration::getConnectionTimeout |
( |
| ) |
const |
- Returns
- the connection timeout
◆ getHost()
| const std::string & lintel::ClientConfiguration::getHost |
( |
| ) |
const |
◆ getKeyFile()
| const std::filesystem::path & lintel::ClientConfiguration::getKeyFile |
( |
| ) |
const |
- Returns
- the TLS key file path
◆ getPort()
◆ getReadTimeOut()
| const std::chrono::milliseconds & lintel::ClientConfiguration::getReadTimeOut |
( |
| ) |
const |
◆ getWriteTimeOut()
| const std::chrono::milliseconds & lintel::ClientConfiguration::getWriteTimeOut |
( |
| ) |
const |
◆ operator<<
Print configuration to stream
The documentation for this class was generated from the following file: