Overview
A Dio interceptor that enhances debugging by pretty-printing HTTP requests and responses in the console with clear formatting. It helps developers quickly inspect data flow, headers, and status codes during development. The package integrates seamlessly with Dio, a popular HTTP client for Dart, and supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux. Ideal for troubleshooting API interactions without requiring external tools.
Use cases
- Debugging API calls in development
- Inspecting request/response payloads
- Monitoring HTTP headers and status codes
- Improving developer productivity during API integration
- Real-time logging of network activity
Key features
- Pretty-printed JSON output
- Supports both requests and responses
- Easy integration with Dio
- Cross-platform compatibility
- Configurable logging level
- Minimal setup required
Suitable for
- Frontend developers using Dio
- Teams focused on rapid API debugging
- Applications requiring transparent network inspection
- Developers working on RESTful services
- Projects where real-time console logs are beneficial
Considerations
- Not recommended for production builds
- May impact performance slightly due to logging
- Requires manual configuration to disable in release mode
- Logs may expose sensitive data if not filtered
- Limited to console output, no file or external logging support