搜尋套件、儲存庫與 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 項

原始碼儲存庫

使用此套件的專案