Package org.apache.http.impl.nio.client
Default asynchronous HTTP client implementation.
The usual execution flow can be demonstrated by the code snippet below:
CloseableHttpAsyncClient httpclient = HttpAsyncClients.createDefault(); try { httpclient.start(); HttpGet request = new HttpGet("http://www.apache.org/"); Futurefuture = httpclient.execute(request, null); HttpResponse response = future.get(); System.out.println(response.getStatusLine()); // Do something useful with the response body } finally { httpclient.close(); }
-
Class Summary Class Description AbstractHttpAsyncClient Deprecated. CloseableHttpAsyncClient Base implementation ofHttpAsyncClient
that also implementsCloseable
.CloseableHttpPipeliningClient Base implementation ofHttpPipeliningClient
that also implementsCloseable
.DefaultAsyncUserTokenHandler Default implementation ofUserTokenHandler
for asynchrounous HTTP client communication.DefaultHttpAsyncClient Deprecated. HttpAsyncClientBuilder Builder forCloseableHttpAsyncClient
instances.HttpAsyncClients Factory methods forCloseableHttpAsyncClient
andCloseableHttpPipeliningClient
instances.