|
10Duke Enterprise C++ SDK
|
#include <ServiceConfiguration.h>
Configuration for supporting services.
Public Member Functions | |
| ServiceConfiguration (const std::chrono::milliseconds &networkTimeout=std::chrono::milliseconds(::tenduke::http::DEFAULT_TIMEOUT_MS), const std::chrono::milliseconds &networkConnectionTimeout=std::chrono::seconds(60), const std::size_t maxResponseBodySize=::tenduke::http::DEFAULT_MAX_RESPONSE_BODY_SIZE) | |
| Constructs new instance. | |
|
inlineexplicit |
Constructs new instance.
| networkTimeout | total timeout of a network request, zero for no timeout. Default: 60 seconds. |
| networkConnectionTimeout | timeout for network connection. Zero means the default of the HTTP library: 300 seconds with libcurl, no timeout with WinHTTP. Default: 60 seconds. |
| maxResponseBodySize | maximum size of a network response body in bytes, a larger response is aborted. Default: 10 MiB. |