talira

Compare

RetrofitKtorOkHttp
What it isA type-safe HTTP client for Android and JavaBuild asynchronous servers and clients in KotlinA meticulous HTTP client for the JVM, Android, and GraalVM
KindOpen sourceOpen sourceOpen source
Trust0.750.800.71
Stars439421457747115
Last commit2026-11-212026-11-242026-11-24
LicenceApache-2.0Apache-2.0Apache-2.0
PricingFree and open sourceFree and open sourceFree and open source
Free tierYesYesYes
Self-hostableYesYes—
Ways to run it———
SOC 2———
HIPAA———
SSO———
API———
PluginsYesYes—
MCP server———
Company—JetBrains—
Features
  • annotations for request method, URL path and query parameters, headers and bodies
  • form-encoded and multipart requests, including file upload
  • synchronous and asynchronous calls
  • Kotlin suspend functions returning the body or a Response
  • converters for Gson, Jackson, Moshi, Protobuf, Wire, Simple XML, JAXB and kotlinx.serialization
  • call adapters for RxJava 1-3, Guava, Java 8 and Scala futures
  • retrofit-mock module for tests
  • R8 shrinking rules included
  • built on Kotlin coroutines
  • routing and Kotlin DSL APIs
  • plugins through a unified interception pipeline
  • server engines: Netty, Jetty, CIO, and Servlet containers such as Tomcat
  • multiplatform HTTP client
  • test host that runs the app without networking
  • unopinionated about logging, templating, serialization, persistence and DI
  • project generator and IntelliJ IDEA tooling
  • HTTP/2 with shared sockets per host
  • connection pooling
  • transparent GZIP
  • response caching
  • recovery from common connection problems and alternate IP addresses
  • TLS 1.3, ALPN and certificate pinning
  • synchronous and asynchronous calls
  • interceptors
  • All 12 features
Limitations
      • Does not allow GET with a body.
      • Cache is not an interface with alternative implementations.
      • Works on Android 5.0+ (API level 21+) and Java 8+.