Registry / networking / httpcore-osgi

httpcore-osgi

JSON →
library4.4.16javamavenunverified

Apache HttpComponents Core provides a set of low-level HTTP transport components for building HTTP client and server applications, packaged as an OSGi bundle.

<dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpcore-osgi</artifactId> <version>4.4.16</version> </dependency>
INSTALL
IMPORT
SIG · HTTPCORE-OSGI
H
httpcore-osgi
networkingjavav4.4.16
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.

HttpEntity
org.apache.http.HttpEntity

Shows how to use HttpEntity with an HTTP client.

import org.apache.http.HttpEntity; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClients; public class Example { public static void main(String[] args) throws Exception { try (CloseableHttpClient client = HttpClients.createDefault()) { HttpEntity entity = client.execute(new org.apache.http.client.methods.HttpGet("http://example.com")).getEntity(); System.out.println(entity.getContentLength()); } } }
Debug
Known issues
breakingVersion 4.4.x is older; consider upgrading to 5.x for new features and security fixes.
fix
Update to org.apache.httpcomponents.client5:httpclient5 and core5.
affects: 4.x
Upgrade
Version history
4.4.16latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
20
Amazon
1
Resources
httpcore-osgi — mvn dependency:get httpcore-osgi · libregistry