Android
Ktor Client Testing Guide: MockEngine, HttpClient Mocking, Streaming Responses & Timeout Tests
Ktor is JetBrains' official HTTP client for Kotlin Multiplatform—used in KMP projects, pure JVM backends, and Android applications. Unlike Retrofit, which wraps OkHttp, Ktor has its own engine abstraction that makes testing particularly clean: just swap the real engine for MockEngine and control every response. Why Ktor Testing