http_hook 0.0.1
http_hook: ^0.0.1 copied to clipboard
A lightweight and flexible Dart HTTP request interception and mocking library for testing and debugging. Supports precise URL matching, path template matching, regex matching, and dynamic response generation.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add http_hook
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
http_hook: ^0.0.1
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:http_hook/http_hook.dart';