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

套件詳情v3.0.2

shelf_packages_handler

用於提供 `packages/` 目錄的 shelf 處理程序。

AndroidiOSmacOSWindowsLinux
近 30 天下載
1210萬
喜歡數
6
Pub 分數
135

安裝套件

flutter pub add shelf_packages_handler

套件介紹

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

一個貨架處理器,可從 `packages/` 目錄提供檔案,在 Web 伺服器環境中啟用對 Dart 套件中資源與資源的存取。它與 Shelf 架構無縫整合,簡化了開發或部署期間交付套件內容的過程。這在本地開發環境中為相依性中的靜態資源提供服務時特別有用。

適用情境

  • 在開發期間提供套件資源
  • 啟用對相依性資源的本機存取
  • 支援使用套件內容的自訂Web伺服器設定
  • 與基於 Dart 的 Web 伺服器整合

主要特色

  • 從 `packages/` 目錄提供檔案
  • 專為與 Shelf 框架配合使用而設計
  • 與 Dart Web 伺服器的簡單整合
  • 支援動態資源解析

適合對象

  • 使用 Shelf 建立 Web 伺服器的 Dart 開發人員
  • 需要訪問包級別資源的工具
  • 需要套件檔案服務的開發環境

使用建議

  • 不適用於生產部署
  • 需要在 Shelf 管道中進行正確設定
  • 僅限從套件提供靜態檔案

原始 README

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

Build Status

About Shelf

Shelf makes it easy to create and compose web servers and parts of web servers. How?

  • Expose a small set of simple types.
  • Map server logic into a simple function: a single argument for the request, the response is the return value.
  • Trivially mix and match synchronous and asynchronous processing.
  • Flexibility to return a simple string or a byte stream with the same model.

It was inspired by Connect for NodeJS and Rack for Ruby.

See the package:shelf readme for more information.

Packages

Package Description Issues Version
shelf A model for web server middleware that encourages composition and easy reuse. issues pub package
shelf_packages_handler A shelf handler for serving a packages/ directory. issues pub package
shelf_proxy A shelf handler for proxying HTTP requests to another server. issues pub package
shelf_router A convenient request router for the shelf web-framework, with support for URL-parameters, nested routers and routers generated from source annotations. issues pub package
shelf_router_generator A package:build-compatible builder for generating request routers for the shelf web-framework based on source annotations. issues pub package
shelf_static Static file server support for the shelf package and ecosystem. issues pub package
shelf_test_handler A Shelf handler that makes it easy to test HTTP interactions. issues pub package
shelf_web_socket A shelf handler that wires up a listener for every connection. issues pub package
_shelf_compliance HTTP/1.1 compliance and hardening tests. issues (not published)

Publishing automation

For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

所屬分類

依賴

依賴清單 3 項

原始碼儲存庫

使用此套件的專案