DevPul Open DevPul

package:http

dependencies:
  devpul: ^0.2.0
  devpul_http: ^0.2.0
import 'package:devpul_http/devpul_http.dart';

final client = DevpulClient();
final res = await client.get(Uri.parse('https://example.com/items'));

DevpulClient wraps another Client, Client() by default, so it works with IOClient, BrowserClient, cupertino_http, cronet_http and anything else that implements Client:

final client = DevpulClient(CronetClient.defaultCronetEngine());

Pass it wherever your code or a package takes a Client.

What it records:

Response bodies are read in full before your code gets them, which suits API calls. text/event-stream responses pass through untouched and show as <stream>, as do StreamedRequest bodies. Binary bodies show their size.