devpul_dio 0.1.0 copy "devpul_dio: ^0.1.0" to clipboard
devpul_dio: ^0.1.0 copied to clipboard

Dio interceptor for DevPul. Shows Dio requests, responses and errors live in the DevPul browser UI, with curl commands.

devpul_dio #

Dio interceptor for DevPul. Shows each request, response and error live in the browser, with headers, bodies, timings and a ready-to-paste curl command.

Install #

dependencies:
  devpul: ^0.1.0
  devpul_dio: ^0.1.0

Usage #

import 'package:devpul_dio/devpul_dio.dart';

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

Add it last so it sees headers set by other interceptors. Ids keep counting across Dio instances, so rebuilding Dio per call is fine. FormData shows as a map of fields and file names, JSON strings show structured, and the full resolved URL is used.

Ignore rules, redaction, size limits and console output come from Devpul.configure in devpul.

Limits #

Debug builds only. Streamed request and response bodies show as <stream>.

0
likes
0
points
287
downloads

Publisher

verified publishersaradgajurel.com.np

Weekly Downloads

Dio interceptor for DevPul. Shows Dio requests, responses and errors live in the DevPul browser UI, with curl commands.

Homepage
Repository (GitHub)
View/report issues

Topics

#debugging #network #dio #http #devtools

License

unknown (license)

Dependencies

devpul, dio

More

Packages that depend on devpul_dio