dart-lang/http
A composable API for making HTTP requests in Dart. observed · 2026-09-03
Health v2 · maintenance only
80/100
- Activity 100
- Release rhythm 42
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 16
- age_days: 4277
- days_rel: 391
- days_push: 0
- n_releases_24m: 10
Adoption not part of the score
1109 stars · 420 forks observed · 2026-09-03
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
package:http is the official Dart/Flutter library providing a composable, Future-based API for making HTTP requests across mobile, desktop, web, and wasm platforms. It includes a Client abstraction with swappable implementations (IOClient, BrowserClient, Cronet, OkHttp, Cupertino) plus wrappers like RetryClient and MockClient.
Use cases
- make http requests in dart
- fetch data from an api in flutter
- call a rest api from a dart app
- retry failed http requests automatically
- mock http responses in dart tests
- use websockets in dart
- make http requests that work on web and mobile
When to choose
- you're building a Dart or Flutter app that consumes HTTP APIs
- you need one client API that works across mobile, desktop, web, and wasm
- you want composable client wrappers for retries, logging, or mocking
- you want platform-native HTTP stacks like Cronet, OkHttp, or NSURLSession
When to avoid
- you need a low-level socket or raw TCP client rather than HTTP
- you're not working in Dart or Flutter
- you need server-side features like routing or middleware for serving requests (use shelf instead)
- you need advanced gRPC or non-HTTP protocols
Facets
library · maturity stable
http-client websocket middleware web-development developer-tools apis cross-platform cross-platform windows browser wasm dart flutter http future-based composable-clients retry mock-client http2 networking android ios macos linux
10 sources
- readme: https://github.com/dart-lang/http · fetched 2026-09-03 · 513d2c793e48
- homepage: https://pub.dev/packages/http · fetched 2026-08-29 · cb84983a7ef5
- site_page: https://pub.dev/packages/http/install · fetched 2026-08-29 · e5745678ff66
- site_page: https://pub.dev/documentation/http/latest/http/Client-class.html · fetched 2026-08-29 · 93077a9ccb51
- site_page: https://pub.dev/documentation/http/latest/http/Request-class.html · fetched 2026-08-29 · cada5f58325a
- site_page: https://pub.dev/documentation/http/latest/http/StreamedRequest-class.html · fetched 2026-08-29 · cea372ed0018
- site_page: https://pub.dev/documentation/http/latest/http/Client/send.html · fetched 2026-08-29 · 2bd3ab61892e
- site_page: https://pub.dev/documentation/http/latest/http/BaseClient-class.html · fetched 2026-08-29 · dce59e2884e8
- site_page: https://pub.dev/documentation/http/latest/retry/RetryClient-class.html · fetched 2026-08-29 · 47906ec84847
- site_page: https://pub.dev/packages/http/changelog · fetched 2026-08-29 · abd27c4383e3
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dart-lang/http | main | 80 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem