dio_debugger 0.1.4 copy "dio_debugger: ^0.1.4" to clipboard
dio_debugger: ^0.1.4 copied to clipboard

Lightweight utility to attach a reverse/forward proxy to an existing Dio instance for local debugging.

example/main.dart

import 'package:dio/dio.dart';
import 'package:dio_debugger/dio_debugger.dart';

Future<void> main() async {
  final dio = Dio(
    BaseOptions(baseUrl: 'https://api.example.com'),
  );

  // Attach reverse proxy interceptor for local debugging
  DioDebugger.attach(dio);

  final response = await dio.get('/health');
  print('Status: \'${response.statusCode}\'');
}
2
likes
0
points
50
downloads

Publisher

unverified uploader

Weekly Downloads

Lightweight utility to attach a reverse/forward proxy to an existing Dio instance for local debugging.

Repository (GitHub)
View/report issues

Topics

#dio #http #debug #proxy #reverse

License

unknown (license)

Dependencies

dio

More

Packages that depend on dio_debugger