Search packages, repositories and app categories

Package detailsv2.9.0

dio_http2_adapter

An adapter that combines HTTP/2 and dio. Supports reusing connections, header compression, etc.

AndroidiOSmacOSWindowsLinux
30-day downloads
158K
Likes
60
Pub points
130

Install package

flutter pub add dio_http2_adapter

Package Overview

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

A Dio plugin that enables HTTP/2 support, improving performance through connection reuse and header compression. It integrates seamlessly with the Dio HTTP client, offering faster, more efficient network requests across multiple platforms. Ideal for applications requiring high-speed data transfer and reduced latency. The adapter leverages HTTP/2's multiplexing and server push capabilities to enhance overall network efficiency.

Use cases

  • High-performance API calls
  • Reducing latency in mobile apps
  • Efficient data streaming
  • Multi-request optimization
  • Real-time data synchronization

Key features

  • HTTP/2 protocol support
  • Connection reuse
  • Header compression
  • Multiplexed requests
  • Server push compatibility

Suitable for

  • Apps needing fast network responses
  • Developers using Dio for HTTP operations
  • Projects targeting modern web protocols
  • Cross-platform applications on Android, iOS, macOS, Windows, Linux

Considerations

  • Requires server-side HTTP/2 support
  • Limited browser compatibility
  • May need additional configuration for certain environments
  • Not suitable for legacy systems without HTTP/2

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

dio

Language: English | 简体中文

This is the base repo of the dio project. Please move to specific paths for project instructions.

Don't forget to add #dio topic to your published dio-related packages! See more: https://dart.dev/tools/pub/pubspec#topics

Versioning

Before you upgrade: Breaking changes might happen in major and minor versions of packages.
See the Migration Guide for the complete breaking changes list.

To know about our compatibility policy, see the Compatibility Policy doc.

All Packages

dio
Plugins
  • cookie_manager: link Pub
  • compatibility_layer: link Pub
  • http2_adapter: link Pub
  • native_dio_adapter: link Pub
  • web_adapter: link Pub
Examples
  • example: link
  • example_flutter_app: link

Copyright & License

The project and its underlying projects are originally authored by @wendux with the organization @flutterchina, started being maintained by Chinese Flutter User Group (@cfug) since 2023.

The project consents the MIT license.

Categories

Dependencies

Dependency list 3 items

Source repository

Projects using this package