#include <transport.hpp>
Public Attributes | |
| std::chrono::milliseconds | connectTimeout {10000} |
| std::chrono::milliseconds | timeout {30000} |
| std::optional< std::string > | proxy |
| bool | followRedirects = false |
| bool | verifyTls = true |
| std::optional< std::string > | caFile |
| std::size_t | maxResponseSize = 64 * 1024 * 1024 |
Transport configuration. Each transport applies the options it supports.
| std::optional<std::string> anch::rest::TransportConfig::caFile |
CA certificates file, system certificates when empty
| std::chrono::milliseconds anch::rest::TransportConfig::connectTimeout {10000} |
Connection timeout
| bool anch::rest::TransportConfig::followRedirects = false |
Follow redirections
| std::size_t anch::rest::TransportConfig::maxResponseSize = 64 * 1024 * 1024 |
Maximum response body size in bytes (the body is read in memory), 0 for no limit. A larger response raises TransportError .
| std::optional<std::string> anch::rest::TransportConfig::proxy |
Proxy URL (http://proxy:3128 ), environment configuration when empty
| std::chrono::milliseconds anch::rest::TransportConfig::timeout {30000} |
Whole request timeout (0 for no timeout)
| bool anch::rest::TransportConfig::verifyTls = true |
Verify TLS peer certificate and host name