Skip to main content

flocon_dio 0.0.2 copy "flocon_dio: ^0.0.2" to clipboard
flocon_dio: ^0.0.2 copied to clipboard

Dio interceptor that sends your HTTP calls to the Flocon desktop debugger.

flocon_dio #

Dio interceptor that sends your HTTP calls to the Flocon desktop debugger, and applies the mocks and the bad network set from the desktop.

Installation #

There is no release on pub.dev yet, depend on the repository:

dependencies:
  flocon:
    git:
      url: https://github.com/openflocon/FloconFlutter.git
      path: packages/flocon
  flocon_dio:
    git:
      url: https://github.com/openflocon/FloconFlutter.git
      path: packages/flocon_dio

Usage #

import 'package:flocon_dio/flocon_dio.dart';

final dio = Dio(BaseOptions(baseUrl: baseUrl)).withFlocon(); // after your own interceptors

The options (which calls are sent, which responses are images) are given once, to the network plugin:

await startFlocon((flocon) => flocon
  ..install(FloconNetwork(isImage: (request, _) => request.url.host == 'images.example.com')));

See the full documentation and the example.

License #

MIT, see LICENSE.

0
likes
160
points
29
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Dio interceptor that sends your HTTP calls to the Flocon desktop debugger.

Repository (GitHub)
View/report issues

Topics

#debugging #devtools #network #dio #flocon

License

MIT (license)

Dependencies

dio, flocon, flutter, uuid

More

Packages that depend on flocon_dio