How does HttpAsyncClient 4 work?
问题 In previous versions of HttpClient target host was set up into client itself. In last version (for HttpAsyncClient it's 4.1.1) host is set up into HttpRequest ( HttpGet , HttpPost etc.) every time I do a request. I want to use persistent connection, so I use HttpAsyncClient . I create and use it like this: CloseableHttpAsyncClient client = HttpAsyncClients.createDefault(); client.start(); List<Future<HttpResponse>> responses = new ArrayList<>(); for (int i = 0; i < 10; i++) { HttpGet get =