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

套件詳情v4.1.2

http_parser

一個跨平台的套件,用於解析和序列化HTTP格式。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
1310萬
喜歡數
271
Pub 分數
160

安裝套件

flutter pub add http_parser

套件介紹

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

http_parser 套件提供跨平台的實用工具,用於解析與序列化 HTTP 標頭、狀態行及其他 HTTP 格式元件。它設計用於在所有主要平台(包含 Android、iOS、Web、macOS、Windows 及 Linux)上運作。此輕量級函式庫支援高效處理 HTTP 訊息,無需依賴完整 HTTP 客戶端,非常適合低階 HTTP 操作。它確保無論底層平台為何,皆能保持一致行為,讓開發者能建構穩健的網路通訊層,並獲得可預測的解析結果。

適用情境

  • 在自定義 HTTP 客戶端中解析 HTTP 標頭
  • 序列化HTTP請求/響應資料
  • 建構用於HTTP處理的中介軟體
  • 在跨平台應用中實現HTTP協議邏輯
  • 在伺服器端 Dart 程式碼中處理原始 HTTP 流

主要特色

  • 跨平台相容性
  • 高效頭部解析和序列化
  • 輕量且無依賴
  • 支援請求和回應解析
  • 對格式錯誤的HTTP資料的強健錯誤處理

適合對象

  • 開發自訂 HTTP 客戶端的開發者
  • 需要在跨平台環境中保持一致的 HTTP 解析的團隊
  • 需要低階次HTTP協議控制的專案
  • 具有即時或串流 HTTP 需求的 Dart 應用程式
  • 使用 Dart 進行 HTTP 消息處理的後端服務

使用建議

  • 不適用於完整的HTTP客戶端功能
  • 需要手動處理 HTTP 連接
  • 最好與 http_client 等傳輸層搭配使用
  • 僅限HTTP格式解析,不完整HTTP堆疊
  • 安全關鍵應用可能需要額外的驗證

原始 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 項

原始碼儲存庫

使用此套件的專案

所在榜單