Skip to content

REST

πŸ“‘ Network Request Inspector (kotlin multi platform compatible)

Screenshot 2025-09-12 at 15 39 55

Screenshot 2025-09-12 at 15 40 03

Flocon captures all outgoing network requests made by the Android app β€” whether they’re simple REST API calls or complex multipart uploads β€” and displays them in an organized UI.

For each request, you can inspect:

  • HTTP method (GET, POST, etc.)
  • Full URL
  • Request headers and body
  • Response headers and body
  • Status code and response time
  • Timestamp

This feature is invaluable for diagnosing backend issues, debugging unexpected API failures, and verifying request payloads and authentication headers.

🎭 HTTP Request Mocking (kotlin multi platform compatible)

Screenshot 2025-09-12 at 15 40 38

Beyond simple inspection, Flocon now allows you to mock HTTP requests. This powerful feature gives you full control over your app's network layer without needing to change any code. You can intercept specific network calls and provide custom responses, making it easy to test various scenarios.

With this feature, you can:

  • Simulate network errors: Test how your app handles different HTTP status codes (e.g., 404 Not Found, 500 Server Error).
  • Create test data: Mock responses with specific data to test different UI states, even if your backend isn't ready yet.
  • Create a new mock from an existing request, then test your app with some differences inside the prefious body
  • Reduce dependencies: Develop and test features without needing a stable internet connection or a complete backend environment.

With OkHttp (android only)

Maven Central

debugImplementation("io.github.openflocon:flocon-okhttp-interceptor:LAST_VERSION")
releaseImplementation("io.github.openflocon:flocon-okhttp-interceptor-no-op:LAST_VERSION")
val okHttpClient = OkHttpClient()
            .newBuilder()
            .addInterceptor(FloconOkhttpInterceptor())
            .build()

With Ktor (kotlin multi platform compatible)

Maven Central

tested with ktor 3.2.3

debugImplementation("io.github.openflocon:flocon-ktor-interceptor:LAST_VERSION")
releaseImplementation("io.github.openflocon:flocon-ktor-interceptor-no-op:LAST_VERSION")
val httpClient = HttpClient(YourClient) { 
    install(FloconKtorPlugin)
    ...
}