devpul_dio 0.2.0 copy "devpul_dio: ^0.2.0" to clipboard
devpul_dio: ^0.2.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.2.0
  devpul_dio: ^0.2.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, the full resolved URL is used and redirects show where they ended.

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
160
points
287
downloads

Documentation

Documentation
API reference

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
Contributing

Topics

#debugging #network #dio #http #devtools

License

MIT (license)

Dependencies

devpul, dio

More

Packages that depend on devpul_dio