Skip to main content

netlens_dio 1.2.0 copy "netlens_dio: ^1.2.0" to clipboard
netlens_dio: ^1.2.0 copied to clipboard

NetLens adapter for Dio. Catches Dio calls for the NetLens in-app HTTP inspector and lets NetLens resend them.

example/README.md

NetLens for Dio example #

import 'package:dio/dio.dart';
import 'package:netlens/netlens.dart';
import 'package:netlens_dio/netlens_dio.dart';

final netLens = NetLens();
final adapter = NetLensDioAdapter();
netLens.addAdapter(adapter);

final dio = Dio()..interceptors.add(adapter);

// Optional: resend calls with this Dio, so they keep its options and interceptors.
adapter.replayClient = dio;

A complete app is in examples/netlens_dio.

0
likes
160
points
178
downloads

Documentation

API reference

Publisher

verified publishershewa.tech

Weekly Downloads

NetLens adapter for Dio. Catches Dio calls for the NetLens in-app HTTP inspector and lets NetLens resend them.

Repository (GitHub)
View/report issues

Topics

#http #inspector #dio #interceptor #netlens

License

Apache-2.0 (license)

Dependencies

dio, flutter, netlens

More

Packages that depend on netlens_dio