REST
π‘ Network Request Inspector (kotlin multi platform compatible)
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)
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)
debugImplementation("io.github.openflocon:flocon-okhttp-interceptor:LAST_VERSION")
releaseImplementation("io.github.openflocon:flocon-okhttp-interceptor-no-op:LAST_VERSION")
With Ktor (kotlin multi platform compatible)
tested with ktor 3.2.3