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

套件詳情v3.2.3

http_multi_server

一個處理來自多個伺服器請求的 dart:io HttpServer 包裝器。

AndroidiOSmacOSWindowsLinux
近 30 天下載
1520萬
喜歡數
48
Pub 分數
160

安裝套件

flutter pub add http_multi_server

套件介紹

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

一個 Dart 套件,用於封裝 dart:io 的 HttpServer,以同時管理來自多個伺服器的 HTTP 請求。它透過提供統一介面來監聽多個埠或位址,簡化伺服器處理,非常適合開發工具和測試環境。該套件輕量級,並與 Dart 內建網路功能無縫整合。支援所有主要平台,包括行動、桌面和伺服器環境。

適用情境

  • 執行多個開發伺服器
  • 使用不同端點測試Web應用程式
  • 使用嵌入式伺服器建構 CLI 工具
  • 管理代理或網關服務
  • 從多個埠提供內容

主要特色

  • 支援多個並行HTTP伺服器
  • 用於管理伺服器實例的簡單 API
  • 跨平台相容性
  • 基於 dart:io 以實現高效能
  • 非常適合開發與測試工作流程

適合對象

  • Dart 開發人員建構後端工具
  • 測試自動化工程師
  • CLI 應用程式建立者
  • Web 框架維護者
  • 開發環境設定

使用建議

  • 不適用於生產級Web應用程式
  • 需要手動管理伺服器生命週期
  • 僅限 HTTP 協議(預設不支援 HTTPS)
  • 依賴 dart:io,因此不適用於網頁瀏覽器
  • 最適合在受控的開發場景中使用

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

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案