Skip to main content

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

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

example/main.dart

import 'package:flocon/flocon.dart';
import 'package:flocon_http/flocon_http.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'package:http/http.dart' as http;

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  if (kDebugMode) {
    // the network options apply to every client
    await startFlocon((flocon) => flocon
      ..install(FloconNetwork(shouldLog: (request) => request.url.host != 'analytics.example.com')));
  }
  final client = http.Client().withFlocon();
  await client.get(Uri.parse('https://httpbin.org/get'));
  client.close();
}
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