devpul_http

package:http client wrapper for DevPul. Shows each request, response and error live in the browser, with headers, bodies, timings and a ready-to-paste curl command.

Install

dependencies:
  devpul: ^0.2.0
  devpul_http: ^0.2.0

Usage

import 'package:devpul_http/devpul_http.dart';

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

It wraps any http.Client, so it works with IOClient, BrowserClient, cupertino_http and cronet_http. Pass it wherever your code takes a Client.

Ignore rules, redaction, size limits and console output come from Devpul.configure in devpul.

Limits

Debug builds only. Response bodies are read in full before your code gets them, which is fine for API calls; text/event-stream responses pass through untouched and show as <stream>. StreamedRequest bodies show as <stream>.

Libraries

devpul_http
package:http client wrapper for DevPul.