alice_http 1.2.0
alice_http: ^1.2.0 copied to clipboard
Alice + HTTP integration. It contains plugin for Alice which allows to use http package.
Alice HTTP #
Alice + HTTP integration. It contains a plugin for Alice which allows you to use the http package.
Setup #
import 'package:alice/alice.dart';
import 'package:alice_http/alice_http_adapter.dart';
import 'package:alice_http/alice_http_extensions.dart';
import 'package:http/http.dart' as http;
AliceHttpAdapter aliceHttpAdapter = AliceHttpAdapter();
Alice alice = Alice()..addAdapter(aliceHttpAdapter);
http.get(Uri.https('jsonplaceholder.typicode.com', '/posts'))
.interceptWithAlice(aliceHttpAdapter);
Documentation #
For full documentation, see Alice documentation or the Main Repository.