When creating an Http connection using:
HttpClientBuilder.create().build(), HttpClients.createDefault()
or:
DefaultHttpClient
.
What's the difference?
private static CloseableHttpClient httpClient = HttpClientBuilder.create().build();
private static CloseableHttpClient httpClient = HttpClients.createDefault();
private static DefaultHttpClient httpClient = new DefaultHttpClient();
Which one is right for you to use?