devpul_http 0.2.0 copy "devpul_http: ^0.2.0" to clipboard
devpul_http: ^0.2.0 copied to clipboard

package:http client wrapper for DevPul. Shows requests, responses and errors live in the DevPul browser UI, with curl commands.

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>.

0
likes
160
points
242
downloads

Documentation

Documentation
API reference

Publisher

verified publishersaradgajurel.com.np

Weekly Downloads

package:http client wrapper for DevPul. Shows requests, responses and errors live in the DevPul browser UI, with curl commands.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#debugging #network #http #devtools

License

MIT (license)

Dependencies

devpul, http

More

Packages that depend on devpul_http