Skip to main content

flog_flow_dio 0.7.0 copy "flog_flow_dio: ^0.7.0" to clipboard
flog_flow_dio: ^0.7.0 copied to clipboard

Dio interceptor for flog_flow. Records every HTTP request in the session timeline (status, timing and, optionally, headers and bodies).

flog_flow_dio #

Dio interceptor for flog_flow: every HTTP request made with Dio shows up in the session timeline of the exported .html (method, URL, status and timing; headers and bodies depending on CaptureConfig).

Usage #

import 'package:flog_flow_dio/flog_flow_dio.dart';

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

What gets stored is controlled by flog_flow's CaptureConfig:

  • captureNetwork (default true): method, host, path, status and duration.
  • captureNetworkBodies (default true): also the full URL and a preview of the request and response bodies.
  • offlineMode (default false): full bodies and request/response headers, so the viewer can rebuild the request as cURL. Those are sensitive (tokens, cookies): don't share that file outside your team.

Using package:http instead? See flog_flow_http.

0
likes
130
points
221
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Dio interceptor for flog_flow. Records every HTTP request in the session timeline (status, timing and, optionally, headers and bodies).

Topics

#debugging #network #dio

License

MIT (license)

Dependencies

dio, flog_flow, flutter

More

Packages that depend on flog_flow_dio