dio_request_inspector 3.1.1 copy "dio_request_inspector: ^3.1.1" to clipboard
dio_request_inspector: ^3.1.1 copied to clipboard

A HTTP inspector for Dio, which can intercept and log HTTP requests and responses.

Dio Requests Inspector

A HTTP inspector for Dio, which can intercept and log HTTP requests and responses.



ss

Features #

  • ✅ Intercept and log HTTP requests and responses
  • ✅ Secure HTTP requests with passwords
  • ✅ Filter logs by request time, method, and status
  • ✅ Search logs by path
  • ✅ Easily share request and response data
  • ✅ Beautify JSON data
  • ✅ Beautiful user interface

How to use #

  • Add the package with command
flutter pub add dio_request_inspector
  • add navigatorObservers to your MaterialApp
navigatorObservers: [
  DioRequestInspector.navigatorObserver,
],
  • Wrap your myApp with DioRequestInspectorMain
void main() {
  runApp(DioRequestInspectorMain(
    isDebugMode: true,
    child: MyApp(),
  ));
}
  • add interceptor to your Dio instance
final DioRequestInspector inspector = DioRequestInspector(
  isDebugMode: true,
  duration: const Duration(milliseconds: 500),
  showFloating: true,
  password: '123456',
);

dio.interceptors.add(inspector.getDioRequestInterceptor());

see detail example

Note #

  • tap Long press on your screen to show DioRequestInspector UI
16
likes
0
points
415
downloads

Publisher

unverified uploader

Weekly Downloads

A HTTP inspector for Dio, which can intercept and log HTTP requests and responses.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dartz, dio, equatable, flutter, get_it, intl, provider, rxdart, share_plus

More

Packages that depend on dio_request_inspector