Dio
dependencies:
devpul: ^0.2.0
devpul_dio: ^0.2.0
import 'package:devpul_dio/devpul_dio.dart';
final dio = Dio()..interceptors.add(DevpulDioInterceptor());
Add it last so it sees headers set by other interceptors; durations are measured from that point. Ids keep counting across Dio instances, so rebuilding Dio per call is fine.
What it records:
- the full resolved URL, query params, headers and body
FormDataas a map of fields and file names- where redirects ended
- status, headers, body and duration of the response
DioExceptions as errors with their type, such asconnectionTimeout,badResponseorcancel, plus any response that came with them
Streamed request and response bodies show as <stream>. Ignore rules, redaction, size limits and console output come from Devpul.configure.