11 const int WebLoadPoolSizeDefault = 10;
12 const int CacheLoadPoolSizeDefault = 40;
13 const int CacheStorePoolSizeDefault = 20;
17 static WebIOConfig CreateDefaultUsingOperatingSystemCACert()
23 const std::string UseOperatingSystemCACert =
"";
25 WebLoadPoolSizeDefault, CacheLoadPoolSizeDefault, CacheStorePoolSizeDefault, UseOperatingSystemCACert);
28 static WebIOConfig CreateDefaultUsingCustomCACert(
const std::string& caCertFilePath)
31 WebLoadPoolSizeDefault, CacheLoadPoolSizeDefault, CacheStorePoolSizeDefault, caCertFilePath);
35 const int webLoadPoolSize,
36 const int cacheLoadPoolSize,
37 const int cacheStorePoolSize,
38 const std::string& optionalCaCertFilePath)
39 : webLoadPoolSize(webLoadPoolSize),
40 cacheLoadPoolSize(cacheLoadPoolSize),
41 cacheStorePoolSize(cacheStorePoolSize),
42 caCertFilePath(optionalCaCertFilePath)
47 bool ShouldUseCACertFile()
const
49 return !caCertFilePath.empty();
53 int cacheLoadPoolSize;
54 int cacheStorePoolSize;
56 std::string caCertFilePath;