FLUTTER ECOSYSTEM

http

A composable, multi-platform, Future-based API for HTTP requests.

Latest version
1.6.0
30-day downloads
8.6M
Likes
8.4K
Pub points
160

Package Overview

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

Overview

The http package provides a flexible, cross-platform solution for making HTTP requests in Dart and Flutter applications. Built on Futures, it supports synchronous and asynchronous operations across Android, iOS, Web, macOS, Windows, and Linux. The package emphasizes composability, allowing developers to easily construct and manage HTTP clients with custom headers, timeouts, and interceptors. It simplifies common tasks like GET, POST, PUT, and DELETE requests, making it ideal for integrating with RESTful APIs and web services.

Use cases
  • Consuming REST APIs
  • Sending form data
  • Handling JSON responses
  • Making authenticated requests
  • Streaming file downloads
  • Intercepting HTTP calls
Key features
  • Future-based API
  • Multi-platform support
  • Customizable client instances
  • Built-in JSON handling
  • Request/response interception
  • Support for headers and authentication
Suitable for
  • Flutter mobile apps
  • Web applications
  • Desktop apps
  • API integration projects
  • Backend service communication
Considerations
  • Requires manual error handling
  • No built-in caching
  • Limited to basic HTTP operations
  • Not suitable for complex networking scenarios
  • Depends on external dependencies for advanced features
  • Does not include WebSocket support
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add http

Categories

Source repository

Related projects

Rankings