FLUTTER ECOSYSTEM

dio_http_formatter

A Dio interceptor for pretty printing the HTTP request/response to be printed in the console for easier debugging

Latest version
3.3.1
30-day downloads
2.7K
Likes
51
Pub points
130

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

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
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add dio_http_formatter

Categories

Dependencies

Dependency list 2 items

Source repository

Related projects