Registry / http-client / httpasyncclient

httpasyncclient

JSON →
library4.1.5javamavenunverified

Apache HttpComponents asynchronous HTTP client for non-blocking HTTP requests.

<dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpasyncclient</artifactId> <version>4.1.5</version> </dependency>
INSTALL
IMPORT
SIG · HTTPASYNCCLIENT
H
httpasyncclient
http-clientjavav4.1.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CloseableHttpAsyncClient
org.apache.http.impl.nio.client.CloseableHttpAsyncClient

Creates an async HTTP client and executes a GET request.

CloseableHttpAsyncClient client = HttpAsyncClients.createDefault(); client.start(); client.execute(new HttpGet("http://example.com"), new FutureCallback<HttpResponse>() { public void completed(HttpResponse result) { System.out.println(result.getStatusLine()); } public void failed(Exception ex) { } public void cancelled() { } });
Debug
Known issues
gotchaHttpAsyncClient 4.x is in maintenance mode; consider upgrading to Apache HttpClient 5.x for new features.
fix
Migrate to org.apache.httpcomponents.client5:httpclient5.
affects: 4.x
Upgrade
Version history
4.1.5latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
14
Resources
httpasyncclient — mvn dependency:get httpasyncclient · libregistry