Provides HTTP/1.1 and HTTP/2 client and server support for Finagle, a fault-tolerant RPC system.
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.
com.twitter.finagle.httpx.Http
Minimal usage of Finagle HTTPX client to make a request.
import com.twitter.finagle.httpx.Http;
import com.twitter.finagle.Service;
import com.twitter.finagle.http.Request;
import com.twitter.finagle.http.Response;
import com.twitter.util.Await;
public class Example {
public static void main(String[] args) throws Exception {
Service<Request, Response> client = Http.client().newService("localhost:8080");
Request request = Request.apply("/");
Response response = Await.result(client.apply(request));
System.out.println(response.getContentString());
}
}
Upgrade
Version history
Breaking-change detection hasn't run for this library yet.
Audit
Security & dependencies
CVE tracking and dependency tree are planned for a later release.