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

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

example/devpul_http_example.dart

import 'package:devpul/devpul.dart';
import 'package:devpul_http/devpul_http.dart';

// dart run --enable-vm-service example/devpul_http_example.dart
// Then paste the printed VM service URL into https://devpul.saradgajurel.com.np
Future<void> main() async {
  Devpul.session({'name': 'devpul_http example'});
  final client = DevpulClient();

  await client.get(Uri.parse('https://httpbin.org/get?page=1'));
  await client.post(
    Uri.parse('https://httpbin.org/post'),
    headers: {'content-type': 'application/json'},
    body: '{"sku": "abc-1", "qty": 2}',
  );
  await client.get(Uri.parse('https://httpbin.org/status/404'));

  await Future<void>.delayed(const Duration(minutes: 10));
}
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