Class HttpClients
java.lang.Object
org.apache.hc.client5.http.impl.classic.HttpClients
Factory methods for
CloseableHttpClient
instances.- Since:
- 4.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CloseableHttpClient
CreatesCloseableHttpClient
instance with default configuration.static MinimalHttpClient
CreatesCloseableHttpClient
instance that implements the most basic HTTP protocol support.static MinimalHttpClient
createMinimal
(HttpClientConnectionManager connManager) CreatesCloseableHttpClient
instance that implements the most basic HTTP protocol support.static CloseableHttpClient
CreatesCloseableHttpClient
instance with default configuration based on system properties.static HttpClientBuilder
custom()
Creates builder object for construction of customCloseableHttpClient
instances.
-
Constructor Details
-
HttpClients
private HttpClients()
-
-
Method Details
-
custom
Creates builder object for construction of customCloseableHttpClient
instances. -
createDefault
CreatesCloseableHttpClient
instance with default configuration. -
createSystem
CreatesCloseableHttpClient
instance with default configuration based on system properties. -
createMinimal
CreatesCloseableHttpClient
instance that implements the most basic HTTP protocol support. -
createMinimal
CreatesCloseableHttpClient
instance that implements the most basic HTTP protocol support.
-