e_http_inspector 1.0.0 copy "e_http_inspector: ^1.0.0" to clipboard
e_http_inspector: ^1.0.0 copied to clipboard

outdated

A Flutter package that inspects http call requests, responses which made by [dio package](https://pub.dev/packages/dio). This package show notifications on each call and UI screen.

HttpCallViewer #

A Flutter package that inspects http call requests, responses which made by dio package. This package show notifications on each call and UI screen.

Features #

  • Show notification on each http call
  • Show history http call list, and call detail in UI screen
  • Copy http call detail to clipboard
Under construction:
  • Export http call to postman format or open api

Getting Started #

Add dependencies #

dependencies:
  e_http_inspector: ^1.0.0

Usage #

Config and use in application #

Init EHttpInspector with _dio instance, MaterialApp's _navigatorKey and some configuration for notifications.

void main() async {
  await EHttpInspector.init(_dio, _navigatorKey, "<Your channel key>", "<Your channel name>",
        "Your channel description");
  runApp(const MyApp());
}

Or init EHttpInspector with dio and config notification in separated step

  //Somewhere in your api client
  _dio = Dio();
  await EHttpInspector.initInterceptor(_dio);
  //In your main.dart
  GlobalKey<NavigatorState> navigatorKey = GlobalKey();

  void main() async {
     await EHttpInspector.initNotification(navigatorKey, "<Your channel key>", "<Your channel name>",
                "Your channel description");
    runApp(const MyApp());
  }

  //Somewhere in your app ui. For ex: app.dart
  MaterialApp(
    key: appKey,
    navigatorKey: navigatorKey,
    // other UI code
  )

Open http call history screen by using

    EHttpInspector.openHttpHistoryScreen()

Issues and feedback #

Create issues and add appropriate label on Github issues or into our mailing list For more detail see CONTRIBUTING

Contributor #

License #

MIT

0
likes
80
pub points
0%
popularity

Publisher

unverified uploader

A Flutter package that inspects http call requests, responses which made by [dio package](https://pub.dev/packages/dio). This package show notifications on each call and UI screen.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MIT (LICENSE)

Dependencies

awesome_notifications, chips_choice_null_safety, dio, eventstateprocessor, flutter, hive, hive_flutter, intl, path_provider, pull_to_refresh

More

Packages that depend on e_http_inspector