搜索插件、代码仓与 APP 分类

插件详情v2.9.0

dio_http2_adapter

一个结合了 HTTP/2 和 dio 的适配器。支持复用连接、头部压缩等功能。

AndroidiOSmacOSWindowsLinux
近 30 天下载
15.8万
喜欢数
60
Pub 分数
130

安装插件

flutter pub add dio_http2_adapter

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个 Dio 插件,可启用 HTTP/2 支持,通过连接复用和头压缩提升性能。该插件与 Dio HTTP 客户端无缝集成,可在多个平台上实现更快、更高效的网络请求。非常适合需要高速数据传输和低延迟的应用程序。该适配器利用 HTTP/2 的多路复用和服务器推送功能,全面提升网络效率。

适合场景

  • 高性能API调用
  • 降低移动应用中的延迟
  • 高效数据流
  • 多请求优化
  • 实时数据同步

主要特点

  • HTTP/2 协议支持
  • 连接复用
  • 头部压缩
  • 多路复用请求
  • 服务器推送兼容性

适合对象

  • 需要快速网络响应的应用
  • 使用 Dio 进行 HTTP 操作的开发者
  • 面向现代网络协议的项目
  • 跨平台应用程序适用于 Android、iOS、macOS、Windows 和 Linux

使用建议

  • 需要服务器端 HTTP/2 支持
  • 有限的浏览器兼容性
  • 某些环境可能需要额外的配置
  • 不适用于没有 HTTP/2 的旧系统

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

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.

所属分类

依赖

依赖清单 3 项

源码仓库

使用此插件的项目