# lysine-dev/okhttp

A meticulous HTTP client for the JVM, Android, and GraalVM.

Repository: https://github.com/lysine-dev/okhttp
Canonical: https://ross.abutalabs.com/products/okhttp
Homepage: https://lysine.dev/okhttp/
Language: Kotlin
License: Apache-2.0
License Family: permissive
Topics: java, android, kotlin, graalvm
Last push: 2026-08-26T21:41:15+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 5154, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 47053, forks 9294 (observed 2026-08-28T04:12:11.160825+00:00)

## What it is
OkHttp is a meticulous HTTP client library for the JVM, Android, and GraalVM, written in Kotlin. It provides efficient HTTP/2 and HTTP/1.1 networking with connection pooling, transparent GZIP, response caching, modern TLS, WebSockets, and SSE support via a fluent request/response API.

## Use cases
- make HTTP requests from a Java or Kotlin application
- consume REST APIs on Android with efficient connection reuse
- add HTTP response caching to reduce network usage
- connect to servers over WebSockets or server-sent events
- enforce modern TLS and certificate pinning for HTTPS calls
- monitor and instrument HTTP calls with an EventListener
- intercept and rewrite requests and responses with middleware

## When to choose
- you need a spec-compliant, RFC-correct HTTP client on the JVM or Android
- you want HTTP/2 multiplexing, connection pooling, and caching out of the box
- you need modern TLS features like TLS 1.3, ALPN, certificate pinning, or ECH
- you want both synchronous and asynchronous request APIs with interceptors

## When to avoid
- you need to send non-standard or invalid requests (e.g., GET with a body) or heavily customize cache behavior
- you need a pluggable cache implementation, since OkHttp's cache is not an interface
- you are not on the JVM/Android platform

## Facets
- artifact type: library
- maturity: stable
- function: http-client, websocket, caching, middleware, security
- domain: web-development, backend, mobile-development, networking, developer-tools
- platform: jvm
- tags: http2, tls, sse, connection-pooling, dns-over-https, interceptors, android, graalvm

## Member repositories
- lysine-dev/okhttp (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:12:11.160825+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:21:10.646147+00:00, confidence not recorded.
  - readme: https://github.com/lysine-dev/okhttp (fetched 2026-08-28T04:12:11.160825+00:00, sha c11695226a5e)
  - homepage: https://lysine.dev/okhttp/ (fetched 2026-08-29T07:45:05.084603+00:00, sha 5ab956745edc)
  - site_page: https://lysine.dev/okhttp/features/calls (fetched 2026-08-29T07:45:05.089305+00:00, sha 60200c5941e8)
  - site_page: https://lysine.dev/okhttp/features/caching (fetched 2026-08-29T07:45:05.098388+00:00, sha e008ad29e2cb)
  - site_page: https://lysine.dev/okhttp/features/connections (fetched 2026-08-29T07:45:05.102680+00:00, sha 9fcbfd625a89)
  - site_page: https://lysine.dev/okhttp/features/events (fetched 2026-08-29T07:45:05.105677+00:00, sha 42098b563b2a)
  - site_page: https://lysine.dev/okhttp/features/https (fetched 2026-08-29T07:45:05.108373+00:00, sha 2b7cf22a12e7)
  - site_page: https://lysine.dev/okhttp/features/interceptors (fetched 2026-08-29T07:45:05.111186+00:00, sha 7d46ef5afa09)
  - site_page: https://lysine.dev/okhttp/features/r8_proguard (fetched 2026-08-29T07:45:05.113648+00:00, sha dd8fe5472cf5)
  - site_page: https://lysine.dev/okhttp/changelogs/changelog (fetched 2026-08-29T07:45:05.092503+00:00, sha d05595bc7a07)
- Data as of 2026-08-30T08:39:29.467469+00:00.
