RxHttp is a type-safe HTTP client for Android built on top of OkHttp that supports Kotlin Coroutines, RxJava2, and RxJava3.
The tool addresses the need for flexible HTTP request handling in Android applications by providing a unified API that works across multiple asynchronous paradigms. It uses OkHttp as its foundation and adds a type-safe layer that allows developers to choose between coroutines, Flow, or RxJava for handling responses. The library includes support for multiple data parsing formats including Gson, Xml, ProtoBuf, and FastJson, and provides built-in features for global encryption and decryption, automatic parameter and header injection, and network caching.
Developers should choose this tool if they are building Android applications and want flexibility in how they handle asynchronous operations. It suits projects that need to support multiple reactive programming styles or are transitioning between them. The tool is particularly valuable for teams that want automatic request lifecycle management tied to Android components like FragmentActivity, Fragment, View, and ViewModel, which prevents memory leaks and dangling requests.
The project shows active maintenance with structured development practices. The codebase is written in Kotlin and uses modern Android build tooling including KSP for code generation. The repository includes comprehensive documentation with separate English and Chinese guides, and provides migration guidance for major version updates. ProGuard rules are automatically included in recent versions, reducing configuration burden for developers using code shrinking and obfuscation.