chuck_interceptor 2.1.4 chuck_interceptor: ^2.1.4 copied to clipboard
Chuck is an HTTP Inspector tool which helps debugging http requests. It catches and stores http requests and responses, which can be viewed via simple UI.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add chuck_interceptor
With Flutter:
$ flutter pub add chuck_interceptor
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
chuck_interceptor: ^2.1.4
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:chuck_interceptor/chuck.dart';
import 'package:chuck_interceptor/core/chuck_core.dart';
import 'package:chuck_interceptor/core/chuck_dio_interceptor.dart';
import 'package:chuck_interceptor/core/chuck_http_adapter.dart';
import 'package:chuck_interceptor/core/chuck_http_client_adapter.dart';
import 'package:chuck_interceptor/core/chuck_http_client_extensions.dart';
import 'package:chuck_interceptor/core/chuck_http_extensions.dart';
import 'package:chuck_interceptor/core/chuck_utils.dart';
import 'package:chuck_interceptor/helper/chuck_alert_helper.dart';
import 'package:chuck_interceptor/helper/chuck_conversion_helper.dart';
import 'package:chuck_interceptor/helper/chuck_save_helper.dart';
import 'package:chuck_interceptor/model/chuck_form_data_file.dart';
import 'package:chuck_interceptor/model/chuck_from_data_field.dart';
import 'package:chuck_interceptor/model/chuck_http_call.dart';
import 'package:chuck_interceptor/model/chuck_http_error.dart';
import 'package:chuck_interceptor/model/chuck_http_request.dart';
import 'package:chuck_interceptor/model/chuck_http_response.dart';
import 'package:chuck_interceptor/model/chuck_menu_item.dart';
import 'package:chuck_interceptor/model/chuck_sort_option.dart';
import 'package:chuck_interceptor/ui/page/chuck_call_details_screen.dart';
import 'package:chuck_interceptor/ui/page/chuck_calls_list_screen.dart';
import 'package:chuck_interceptor/ui/page/chuck_stats_screen.dart';
import 'package:chuck_interceptor/ui/widget/chuck_base_call_details_widget.dart';
import 'package:chuck_interceptor/ui/widget/chuck_call_error_widget.dart';
import 'package:chuck_interceptor/ui/widget/chuck_call_list_item_widget.dart';
import 'package:chuck_interceptor/ui/widget/chuck_call_overview_widget.dart';
import 'package:chuck_interceptor/ui/widget/chuck_call_request_widget.dart';
import 'package:chuck_interceptor/ui/widget/chuck_call_response_preview_widget.dart';
import 'package:chuck_interceptor/ui/widget/chuck_call_response_widget.dart';
import 'package:chuck_interceptor/ui/widget/chuck_json_viewer.dart';
import 'package:chuck_interceptor/utils/chuck_constants.dart';
import 'package:chuck_interceptor/utils/chuck_parser.dart';
import 'package:chuck_interceptor/utils/shake_detector.dart';