unirest-java-4

Installation
SKILL.md

Unirest-Java 4.x Reference (v4.10.0)

This skill covers the Unirest-Java 4.x HTTP client library for Java 11+. It uses the built-in java.net.http.HttpClient (replacing Apache HttpClient in 3.x) and defaults to HTTP/2.

Capability Boundaries

✅ Strong Suits

  1. Building HTTP requests (GET, POST, PUT, DELETE, PATCH) with fluent API
  2. JSON/object mapping with GSON or Jackson (must declare module explicitly)
  3. Async requests with CompletableFuture (built into java.net.http.HttpClient)
  4. File uploads with progress monitoring
  5. Server-Sent Events (SSE) consumption via Unirest.sse(url)
  6. WebSocket connections via Unirest.webSocket(url)
  7. Mock testing for HTTP clients
  8. Response caching with configurable eviction
  9. Proxy configuration (simple, system, ProxySelector)
  10. HTTP/2 by default (configurable via config.version())
  11. Custom executor support via config.executor()
  12. Java Authenticator support via config.authenticator()
Installs
7
GitHub Stars
3
First Seen
Jun 17, 2026
unirest-java-4 — full-statck-skills/java-skills