What is the difference between CloseableHttpClient and HttpClient in Apache HttpClient API?
I'm studying an application developed by our company. It uses the Apache HttpClient library. In the source code it uses the HttpClient class to create instances to connect to a server. I want to learn about Apache HttpClient and I've gone trough this set of examples . All the examples use CloseableHttpClient instead of HttpClient . So I think CloseableHttpClient is an extended version of HttpClient . If this is the case I have two questions: What is the difference between these two? Which class is recommended to use for my new development? The main entry point of the HttpClient API is the