devpul_http

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

Install

dependencies:
  devpul: ^1.0.0
  devpul_http: ^1.0.0

Usage

import 'package:devpul_http/devpul_http.dart';

final client = DevpulClient();

Future<String> items() => client.read(Uri.parse('https://example.com/items'));

DevpulClient wraps any Client, Client() by default, so it works with IOClient, BrowserClient, cupertino_http and cronet_http. Ignore rules, redaction, size limits and console output come from Devpul.configure in devpul. See the package:http page.

Limits

Debug builds, and profile builds built with DEVPUL_PROFILE. Response bodies are read in full before your code gets them; text/event-stream responses pass through untouched and show as <stream>, as do StreamedRequest bodies.

Libraries

devpul_http
package:http client wrapper for DevPul.