Esempio n. 1
0
 /// <summary>
 /// Creates
 /// <see cref="CloseableHttpClient">CloseableHttpClient</see>
 /// instance with default
 /// configuration.
 /// </summary>
 public static CloseableHttpClient CreateDefault()
 {
     return(HttpClientBuilder.Create().Build());
 }
Esempio n. 2
0
 /// <summary>
 /// Creates
 /// <see cref="CloseableHttpClient">CloseableHttpClient</see>
 /// instance with default
 /// configuration based on ssytem properties.
 /// </summary>
 public static CloseableHttpClient CreateSystem()
 {
     return(HttpClientBuilder.Create().UseSystemProperties().Build());
 }
Esempio n. 3
0
 /// <summary>
 /// Creates builder object for construction of custom
 /// <see cref="CloseableHttpClient">CloseableHttpClient</see>
 /// instances.
 /// </summary>
 public static HttpClientBuilder Custom()
 {
     return(HttpClientBuilder.Create());
 }