Skip to main content

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

package:http client wrapper that sends your HTTP calls to the Flocon desktop debugger.

flocon_http #

package:http client wrapper 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_http:
    git:
      url: https://github.com/openflocon/FloconFlutter.git
      path: packages/flocon_http

Usage #

import 'package:flocon_http/flocon_http.dart';

final client = http.Client().withFlocon();
final response = await client.get(Uri.parse('https://example.com'));

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

package:http client wrapper that sends your HTTP calls to the Flocon desktop debugger.

Repository (GitHub)
View/report issues

Topics

#debugging #devtools #network #http #flocon

License

MIT (license)

Dependencies

flocon, flutter, http, uuid

More

Packages that depend on flocon_http