Alice HTTP

pub package

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.