Skip to main content

netlens_chopper 1.2.0 copy "netlens_chopper: ^1.2.0" to clipboard
netlens_chopper: ^1.2.0 copied to clipboard

NetLens adapter for Chopper. Catches Chopper calls for the NetLens in-app HTTP inspector in Flutter apps.

NetLens for Chopper #

pub package

Connects NetLens, the in-app HTTP inspector for Flutter, to Chopper.

Install #

dependencies:
  netlens: ^1.2.0
  netlens_chopper: ^1.2.0

Use #

import 'package:chopper/chopper.dart';
import 'package:netlens/netlens.dart';
import 'package:netlens_chopper/netlens_chopper.dart';

final netLens = NetLens();
final adapter = NetLensChopperAdapter();
netLens.addAdapter(adapter);

final chopper = ChopperClient(interceptors: [adapter]);

Mocks #

To replay mocks recorded by NetLens, pass NetLensHttpMockClient from netlens_http as the client of Chopper:

final chopper = ChopperClient(
  client: NetLensHttpMockClient(resolver: netLens.mocks),
  interceptors: [adapter],
);

See Mocks.

Documentation #

You can find the documentation here.

Credits #

NetLens is a fork of Alice by Jakub Homlala and its contributors, licensed under the Apache License 2.0.

0
likes
160
points
170
downloads

Documentation

API reference

Publisher

verified publishershewa.tech

Weekly Downloads

NetLens adapter for Chopper. Catches Chopper calls for the NetLens in-app HTTP inspector in Flutter apps.

Repository (GitHub)
View/report issues

Topics

#http #inspector #netlens #chopper #interceptor

License

Apache-2.0 (license)

Dependencies

chopper, flutter, http, netlens, uuid

More

Packages that depend on netlens_chopper