FLUTTER ECOSYSTEM

fetch_api

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

Latest version
2.3.1
30-day downloads
79.5K
Likes
11
Pub points
140

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

The fetch_api package provides JavaScript-style Fetch API bindings for Flutter web applications, enabling flexible and modern HTTP requests. It supports features like redirects, streaming responses, and intuitive request handling, closely mirroring the browser's native Fetch API. Designed specifically for web platforms, it simplifies making HTTP calls with a familiar interface. The package is lightweight and integrates seamlessly into web-based Flutter projects.

Use cases
  • Making HTTP GET and POST requests
  • Handling streaming responses
  • Managing redirects automatically
  • Implementing client-side APIs in web apps
  • Simplifying fetch-based interactions
Key features
  • JavaScript Fetch API compatibility
  • Streaming response support
  • Automatic redirect handling
  • Simple, chainable syntax
  • Web-only platform targeting
Suitable for
  • Web-only Flutter projects
  • Frontend web applications
  • API integrations on the web
  • Developers familiar with JavaScript fetch
  • Projects needing lightweight HTTP clients
Considerations
  • Not available on mobile or desktop platforms
  • Limited to web environment
  • Relies on browser's native fetch
  • No built-in error retry logic
  • Requires careful handling of async streams
Supported platformsWeb

Install package

flutter pub add fetch_api

Categories

Dependencies

Dependency list 1 items

Source repository

Related projects