Registry / http-client / fluent-hc

fluent-hc

JSON →
library4.5.14javamavenunverified

Provides a fluent, builder-style API for making HTTP requests using Apache HttpClient.

<dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>fluent-hc</artifactId> <version>4.5.14</version> </dependency>
INSTALL
IMPORT
SIG · FLUENT-HC
F
fluent-hc
http-clientjavav4.5.14
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.

Request
org.apache.http.client.fluent.Request

Performs a GET request and prints the response body using the fluent API.

import org.apache.http.client.fluent.Request; import org.apache.http.client.fluent.Content; public class Example { public static void main(String[] args) throws Exception { Content content = Request.Get("https://api.example.com/data") .execute() .returnContent(); System.out.println(content.asString()); } }
Debug
Known issues
gotchaFluent HC 4.5.x is based on HttpClient 4.x, which is in maintenance mode. Consider migrating to HttpClient 5.x.
fix
Use org.apache.httpcomponents.client5:fluent-hc for HttpClient 5.x compatibility.
affects: >=4.0 <5.0
Upgrade
Version history
4.5.14latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
22
Amazon
1
Resources
fluent-hc — mvn dependency:get fluent-hc · libregistry