mock_http 0.3.0 copy "mock_http: ^0.3.0" to clipboard
mock_http: ^0.3.0 copied to clipboard

A library for easily and declaratively creating a mock HTTP client.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add mock_http

With Flutter:

 $ flutter pub add mock_http

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  mock_http: ^0.3.0

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:mock_http/mock_http.dart';
0
likes
120
pub points
0%
popularity

Publisher

verified publishersamw.dev

A library for easily and declaratively creating a mock HTTP client.

Documentation

API reference

License

MIT (license)

Dependencies

http, indent, matcher, test

More

Packages that depend on mock_http