gio_mock 0.0.3 copy "gio_mock: ^0.0.3" to clipboard
gio_mock: ^0.0.3 copied to clipboard

outdated

For auxiliary gio library.

example/gio_mock_example.dart

import 'package:gio/gio.dart';
import 'package:gio_mock/src/gio_mock_server.dart';

import 'mymock_channel.dart';

void main() async {
  Gio.option = GioOption(
      enableLog: false,
      basePath: 'https://www.gio.com',
      mockInterceptor: GioMockServer(MyMockChannel()));
  Gio gio = Gio();
  var resp = await gio.get("/hello");

  print(resp.body);
  gio.close();
}
1
likes
0
points
14
downloads

Publisher

unverified uploader

Weekly Downloads

For auxiliary gio library.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

gio

More

Packages that depend on gio_mock