webfetch 0.1.0 copy "webfetch: ^0.1.0" to clipboard
webfetch: ^0.1.0 copied to clipboard

A Dart implementation of the Web Fetch API that allows you to make requests and process results just like using fetch in a browser.

Web Fetch #

A Dart implementation of the Web Fetch API that allows you to make requests and process results just like using fetch in a browser.

Features #

Usage #

In your pubspec.yaml:

dependencies:
  webfetch: latest

In your Dart code:

import 'package:webfetch/webfetch.dart';

void main() async {
  final response = await fetch('https://example.com');
  final text = await response.text();
  print(text);
}

Documentation #

The library is designed to be as close as possible to the Fetch API.

License #

The MIT License (MIT). Please see License File for more information.

3
likes
150
points
1.06k
downloads

Publisher

verified publisherodroe.com

Weekly Downloads

A Dart implementation of the Web Fetch API that allows you to make requests and process results just like using fetch in a browser.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

mime, web

More

Packages that depend on webfetch