# http_mock_adapter

> Mock Dio HTTP requests in Dart and Flutter tests

Source: https://talira.ai/catalog/http-mock-adapter-amtwgw08
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / testing / http mocking](https://talira.ai/categories/developer-tools/testing/http-mocking), [languages / dart](https://talira.ai/categories/languages/dart)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Luka Giorgadze](https://talira.ai/orgs/lukagiorgadze.md)

http_mock_adapter is a [Dart](https://talira.ai/catalog/dart-3askvstd.md) package for mocking [Dio](https://talira.ai/catalog/dio-d8sdkjkv.md) HTTP calls in tests: you attach a DioAdapter and declare the responses each request should get, with matchers that can check the full request including an exact body.

## Links

- GitHub: https://github.com/LukaGiorgadze/http-mock-adapter

## Problems it solves

- mock Dio HTTP requests in Flutter tests
- unit test code that calls an API with Dio
- fake API responses in Dart tests

## Features

- declarative request-response mocks for Dio
- request matchers including exact body checks
- test-only adapter

## Trust

Overall: 0.28 out of 1.
Signals: maintenance 0.27, adoption 0.37, momentum 0.09, community 0.54, backing 0.30, extensibility 0.00.

- latest release v0.6.1 3.0 years ago
- 69 GitHub stars
- 21 contributors
- backed by Luka Giorgadze

Warnings:

- last commit 5 months ago

## Related

- Works with [dio](https://talira.ai/catalog/dio-d8sdkjkv.md)

## Sources

[^1]: https://github.com/LukaGiorgadze/http-mock-adapter/blob/main/LICENSE (checked 29 Nov 2026)
