| 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
|