Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/medz/webfetch
A Dart implementation of the Web Fetch API that allows you to make requests and process results just like using fetch in a browser.
https://github.com/medz/webfetch
blob dart fetch fetch-api flutter mdn web webapi
Last synced: 22 days ago
JSON representation
A Dart implementation of the Web Fetch API that allows you to make requests and process results just like using fetch in a browser.
- Host: GitHub
- URL: https://github.com/medz/webfetch
- Owner: medz
- License: mit
- Created: 2023-09-25T01:39:49.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-30T15:42:12.000Z (7 months ago)
- Last Synced: 2024-05-01T14:14:58.531Z (7 months ago)
- Topics: blob, dart, fetch, fetch-api, flutter, mdn, web, webapi
- Language: Dart
- Homepage:
- Size: 158 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## 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
- Supports the [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API)
- Supports the [FromData API](https://developer.mozilla.org/en-US/docs/Web/API/FormData)
- Supports the [URL API](https://developer.mozilla.org/en-US/docs/Web/API/URL)
- Supports the [URLSearchParams API](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams)
- Supports the [Headers API](https://developer.mozilla.org/en-US/docs/Web/API/Headers)
- Supports the [Response API](https://developer.mozilla.org/en-US/docs/Web/API/Response)
- Supports the [Request API](https://developer.mozilla.org/en-US/docs/Web/API/Request)## Usage
In your `pubspec.yaml`:
```yaml
dependencies:
webfetch: latest
```In your Dart code:
```dart
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](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API).
## License
The MIT License (MIT). Please see [License File](LICENSE) for more information.