Retrofit
A type-safe HTTP client for Android and Java.
Language: JavaCategory: HTTPFirst released: 2011Created by: Square (Jake Wharton)License: Apache-2.0
Retrofit is a type-safe HTTP client for Java and Android developed by Square. It turns your HTTP API into a Java interface using annotations to describe the HTTP request. Retrofit handles request execution, URL parameter substitution, and response deserialization automatically using converters like Gson, Moshi, or Jackson. It integrates seamlessly with RxJava, Coroutines, and LiveData for async programming.
Links
Key Features
Type-safe API declaration via Java interface + annotationsAutomatic request parameter handling (@Path, @Query, @Body)Pluggable converters (Gson, Moshi, Jackson, Protobuf)Sync and async execution models (Call, RxJava, Coroutines)Interceptor chain for logging, auth, and headersDynamic URL and header supportMultipart and form-encoded request supportError handling with custom error body parsing