搜尋套件、儲存庫與 APP 分類

套件詳情v3.1.0

http2

Dart 中的 HTTP/2 实現。

AndroidiOSmacOSWindowsLinux
近 30 天下載
85.8萬
喜歡數
96
Pub 分數
150

安裝套件

flutter pub add http2

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Dart 實現的 HTTP/2 協定,可在客戶端與伺服器之間實現高性能量、多工通訊。專為 Flutter 與其他 Dart 應用程式設計,支援現代 Web 標準,具備高效請求處理能力與更低延遲。此套件屬於官方 Dart HTTP 生態系統的一部分,可與現有 HTTP 工作流程無縫整合。專為需要透過 HTTP/2 高階功能(如串流多工與標頭壓縮)實現更快網路互動的開發者設計。

適用情境

  • 高性能 API 客戶端
  • 即時資料流
  • 高效的移動和桌面網路
  • 降低Web服務中的延遲
  • 多流HTTP通訊

主要特色

  • 支援 HTTP/2 多工複用
  • 內建標題壓縮
  • 透過 TLS 的安全連接
  • 與 Dart 的 HttpClient 集成
  • 輕量且模組化的設計

適合對象

  • 開發快速網路應用的開發者
  • 需要併發請求的應用程式
  • 使用現代 HTTP 協議的專案
  • 需要優化網路連接的Flutter應用
  • 高吞吐量後端服務

使用建議

  • 需要 TLS 才能完全支援 HTTP/2
  • 僅限 Dart 環境
  • 不適用於僅支援 HTTP/1.1 的使用案例
  • 取決於底層平台的網路堆疊
  • 可能需要為自定義伺服器進行額外設定

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Build Status

A composable, Future-based library for making HTTP requests.

package:http contains a set of high-level functions and classes that make it easy to consume HTTP resources. It's multi-platform, and supports mobile, desktop, and the browser.

Packages

Package Description Version
cronet_http An Android Flutter plugin that provides access to the Cronet HTTP client. pub package
cupertino_http A macOS/iOS Flutter plugin that provides access to the Foundation URL Loading System. pub package
flutter_http_example An Flutter app that demonstrates how to configure and use package:http. —
http A composable, multi-platform, Future-based API for HTTP requests. pub package
http2 A HTTP/2 implementation in Dart. pub package
http_client_conformance_tests A library that tests whether implementations of package:http's Client class behave as expected.
http_multi_server A dart:io HttpServer wrapper that handles requests from multiple servers. pub package
http_parser A platform-independent package for parsing and serializing HTTP formats. pub package
http_profile A library used by HTTP client authors to integrate with the DevTools Network View. pub package
ok_http An Android Flutter plugin that provides access to the OkHttp HTTP client and the OkHttp WebSocket API. pub package
web_socket Any easy-to-use library for communicating with WebSockets that has multiple implementations. pub package
web_socket_channel StreamChannel wrappers for WebSockets. Provides a cross-platform WebSocketChannel API. package issues
web_socket_conformance_tests A library that tests whether implementations of package:web_socket's WebSocket class behave as expected.

Contributing

If you'd like to contribute to any of these packages, see the Contributing Guide.

所屬分類

依賴

依賴清單 4 項

原始碼儲存庫

使用此套件的專案