# http2 (Dart)

> HTTP/2 implementation for Dart, with a pooled, multiplexing http.Client

Source: https://talira.ai/catalog/http2-dart-wz40w14x
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / http clients](https://talira.ai/categories/libraries/http-clients), [languages / dart](https://talira.ai/categories/languages/dart)
- Licence: BSD-3-Clause[^2]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source (BSD-3-Clause).
- Free tier: yes[^1]
- Backed by: [Google](https://talira.ai/orgs/google.md)
- Funding: public company (NASDAQ:GOOGL)[^3]

http2 is the Dart team's HTTP/2 implementation on top of a bidirectional byte stream, for clients and servers. Its Http2Client is a package:http Client that pools and multiplexes requests over shared HTTP/2 connections instead of opening one connection per request, which dart:io's HTTP/1.1 HttpClient would do.

## Links

- GitHub: https://github.com/dart-lang/http

## Problems it solves

- my Dart app opens a new TLS connection for every request to the same API
- make HTTP/2 requests from a Dart command-line app
- multiplex many concurrent requests to one host in Dart

## Features

- HTTP/2 client and server transport over a bidirectional byte stream
- Http2Client: a package:http Client that pools and multiplexes requests over shared HTTP/2 connections
- one connection per host and port, reused across requests

## Limitations

- Http2Client speaks only HTTP/2 and doesn't fall back to HTTP/1.1: a server that doesn't negotiate h2 is an error.[^1]

## Trust

Overall: 0.67 out of 1.
Signals: maintenance 1.00, adoption 0.61, momentum 0.28, community 0.84, backing 0.55, extensibility 0.00.

- last commit 4 days ago
- 84 commits in the last 90 days
- latest release cronet_http-v1.10.2 6 days ago
- 1.1k GitHub stars
- 127 contributors
- backed by Google
- funding: public company (NASDAQ:GOOGL)

## Alternatives

- [dio](https://talira.ai/catalog/dio-d8sdkjkv.md): HTTP client for Dart and Flutter with interceptors, FormData and cancellation
- [cookie_jar](https://talira.ai/catalog/cookie-jar-94j7qs79.md): A cookie manager for HTTP requests in Dart

## Sources

[^1]: https://github.com/dart-lang/http/blob/master/pkgs/http2/README.md (checked 29 Nov 2026)
[^2]: https://github.com/dart-lang/http/blob/master/pkgs/http2/LICENSE (checked 29 Nov 2026)
[^3]: https://www.sec.gov/files/company_tickers_exchange.json (checked 20 Nov 2026)
