# dio

> HTTP client for Dart and Flutter with interceptors, FormData and cancellation

Source: https://talira.ai/catalog/dio-d8sdkjkv
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / http clients](https://talira.ai/categories/libraries/http-clients)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Backed by: [Chinese Flutter User Group](https://talira.ai/orgs/cfug.md)

dio is an HTTP client for [Dart](https://talira.ai/catalog/dart-3askvstd.md) and [Flutter](https://talira.ai/catalog/flutter-nhwgvsth.md). It adds what Dart's basic HTTP package leaves out: an instance with shared defaults (base URL, headers, timeouts), interceptors to change requests, responses and errors (including a queued interceptor for refreshing tokens), FormData and multi-file uploads with progress, downloads and streamed responses, cancellation tokens, transformers, proxy and certificate pinning settings, and swappable adapters. Plugins add a cookie manager, HTTP/2, the platform's native HTTP stack and a web adapter. It was started by wendux under flutterchina and has been maintained by the Chinese Flutter User Group since 2023.

## Links

- GitHub: https://github.com/cfug/dio
- Docs: https://pub.dev/documentation/dio/latest/

## Problems it solves

- refresh an expired auth token and retry the request in my Flutter app
- upload several files with a progress bar from Flutter
- set a base URL and default headers for every API call in my Dart app
- cancel an in-flight HTTP request when the user leaves the screen
- log every HTTP request and response my Flutter app makes

## Features

- global defaults: base URL, headers, timeouts
- interceptors, including QueuedInterceptor and LogInterceptor
- FormData and multiple file uploads with progress
- file downloads and streamed responses
- request cancellation
- custom transformers
- proxy settings and HTTPS certificate verification
- swappable HttpClientAdapter
- plugins: cookie manager, HTTP/2, native adapter, web adapter

## Trust

Overall: 0.53 out of 1.
Signals: maintenance 0.50, adoption 0.82, momentum 0.63, community 0.86, backing 0.30, extensibility 0.00.

- last commit 36 days ago
- 7 commits in the last 90 days
- latest release dio_v5.11.1 2 months ago
- 12.8k GitHub stars
- 143 contributors
- accepts sponsorship (Github, Github)
- backed by Chinese Flutter User Group

## Related

- Works with [Dart](https://talira.ai/catalog/dart-3askvstd.md)
- Works with [Flutter](https://talira.ai/catalog/flutter-nhwgvsth.md)

## Sources

[^1]: https://github.com/cfug/dio/blob/main/LICENSE (checked 23 Nov 2026)
