fetch_api 2.1.0 copy "fetch_api: ^2.1.0" to clipboard
fetch_api: ^2.1.0 copied to clipboard

Platformweb

JavaScript bindings for Fetch API, flexible HTTP requests, redirects, streaming and more.

example/fetch_api_example.dart

import 'package:fetch_api/fetch_api.dart';


void main() async {
  // Simple cors request
  final response = await fetch(
    'https://api.restful-api.dev/objects/1',
    FetchOptions(
      mode: RequestMode.cors,
    ),
  );

  print(await response.text());
}
9
likes
140
pub points
92%
popularity

Publisher

verified publishernull.moe

JavaScript bindings for Fetch API, flexible HTTP requests, redirects, streaming and more.

Repository (GitHub)
View/report issues

Topics

#web #fetch

Documentation

API reference

License

ISC (license)

Dependencies

web

More

Packages that depend on fetch_api