Skip to main content

devpul_dio 1.1.1 copy "devpul_dio: ^1.1.1" to clipboard
devpul_dio: ^1.1.1 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 curl command.

Install #

dependencies:
  devpul: ^1.1.0
  devpul_dio: ^1.1.1

Usage #

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

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

Add it last so it sees headers set by other interceptors. Ignore rules, redaction, size limits and console output come from Devpul.configure in devpul. See the Dio page.

Mock rules and breakpoints set in the UI answer, fail, delay or pause its calls, and the UI can replay them: see Mocks, breakpoints and replay. Pass the Dio, DevpulDioInterceptor(dio: dio), so replays go out through its adapter.

Limits #

Debug builds, and profile builds built with DEVPUL_PROFILE. Streamed request and response bodies show as <stream>.

0
likes
160
points
106
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