10Duke Enterprise C++ SDK
Loading...
Searching...
No Matches
ServiceConfiguration Class Reference

#include <ServiceConfiguration.h>

Detailed Description

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.

Public Attributes

const std::chrono::milliseconds networkConnectionTimeout
 Network connection timeout, zero for the default of the HTTP library.
const std::chrono::milliseconds networkTimeout
 Total timeout of a network request, zero for no timeout.
const std::size_t maxResponseBodySize
 Maximum size of a network response body in bytes.

Constructor & Destructor Documentation

◆ ServiceConfiguration()

tenduke::ServiceConfiguration::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 )
inlineexplicit

Constructs new instance.

Parameters
networkTimeouttotal timeout of a network request, zero for no timeout. Default: 60 seconds.
networkConnectionTimeouttimeout for network connection. Zero means the default of the HTTP library: 300 seconds with libcurl, no timeout with WinHTTP. Default: 60 seconds.
maxResponseBodySizemaximum size of a network response body in bytes, a larger response is aborted. Default: 10 MiB.

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