Contains a configuration for the network.  
 More...
#include <NetworkSettings.h>
Contains a configuration for the network. 
 
◆ GetConnectionTimeoutDuration()
      
        
          | std::chrono::milliseconds olp::http::NetworkSettings::GetConnectionTimeoutDuration  | 
          ( | 
           | ) | 
           const | 
        
      
 
Gets the connection timeout. 
- Returns
 - The connection timeout. 
 
 
 
◆ GetDNSServers()
      
        
          | const std::vector<std::string>& olp::http::NetworkSettings::GetDNSServers  | 
          ( | 
           | ) | 
           const | 
        
      
 
Gets the DNS list. 
- Returns
 - The DNS list. 
 
 
 
◆ GetMaxConnectionLifetime()
      
        
          | std::chrono::seconds olp::http::NetworkSettings::GetMaxConnectionLifetime  | 
          ( | 
           | ) | 
           const | 
        
      
 
Gets max lifetime (since creation) allowed for reusing a connection. 
- Returns
 - The lifetime. 
 
 
 
◆ GetProxySettings()
Gets the proxy settings. 
- Returns
 - The proxy settings. 
 
 
 
◆ GetTransferTimeoutDuration()
      
        
          | std::chrono::milliseconds olp::http::NetworkSettings::GetTransferTimeoutDuration  | 
          ( | 
           | ) | 
           const | 
        
      
 
Gets the transfer timeout. 
- Returns
 - The transfer timeout. 
 
 
 
◆ WithConnectionTimeout()
      
        
          | NetworkSettings& olp::http::NetworkSettings::WithConnectionTimeout  | 
          ( | 
          std::chrono::milliseconds  | 
          timeout | ) | 
           | 
        
      
 
Sets the connection timeout. 
- Parameters
 - 
  
    | [in] | timeout | The connection timeout. | 
  
   
- Returns
 - A reference to *this. 
 
 
 
◆ WithDNSServers()
      
        
          | NetworkSettings& olp::http::NetworkSettings::WithDNSServers  | 
          ( | 
          std::vector< std::string >  | 
          dns_servers | ) | 
           | 
        
      
 
Sets the DNS servers to use. Works only with CURL implementation. The order is important.To reduce response time make sure that most probably servers are at the beginning. 
Note: This list replaces any other mechanism to retrieve DNS list.
- Parameters
 - 
  
    | [in] | dns_servers | The DNS list. | 
  
   
- Returns
 - A reference to *this. 
 
 
 
◆ WithMaxConnectionLifetime()
      
        
          | NetworkSettings& olp::http::NetworkSettings::WithMaxConnectionLifetime  | 
          ( | 
          std::chrono::seconds  | 
          lifetime | ) | 
           | 
        
      
 
Sets max lifetime (since creation) allowed for reusing a connection. Supported only for CURL implementation. If set to 0, this behavior is disabled: all connections are eligible for reuse. 
- Returns
 - A reference to *this. 
 
 
 
◆ WithProxySettings()
Sets the proxy settings. 
- Parameters
 - 
  
    | [in] | settings | The proxy settings. | 
  
   
- Returns
 - A reference to *this. 
 
 
 
◆ WithTransferTimeout()
      
        
          | NetworkSettings& olp::http::NetworkSettings::WithTransferTimeout  | 
          ( | 
          std::chrono::milliseconds  | 
          timeout | ) | 
           | 
        
      
 
Sets the transfer timeout. 
- Parameters
 - 
  
    | [in] | timeout | The transfer timeout. | 
  
   
- Returns
 - A reference to *this. 
 
 
 
The documentation for this class was generated from the following file: