パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v1.0.5

shelf_proxy

別のサーバーへのHTTPリクエストをプロキシするためのShelfハンドラー。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
1000万
いいね数
94
Pub ポイント
160

パッケージをインストール

flutter pub add shelf_proxy

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Shelf Proxy は、HTTPリクエストを別のサーバーに転送するためのShelfハンドラを提供するDartパッケージです。FlutterやDartアプリケーション内でプロキシサーバーを簡単に作成でき、最小限の構成でリクエストのインターセプトと転送が可能です。バックエンド統合、APIゲートウェイパターン、またはテスト環境に最適で、モバイル、Web、デスクトップを含むすべての主要プラットフォームをサポートしています。このパッケージはShelfエコシステムとシームレスに統合されており、受信リクエストの処理と外部サービスへのルーティングにおいて柔軟性を提供します。

用途

  • APIゲートウェイの実装
  • テストおよび開発プロキシ
  • バックエンドサービスの統合
  • リクエストのログ記録とモニタリング
  • クロスオリジンリクエストの転送

主な機能

  • Shelf との簡単な統合
  • すべてのDartプラットフォームをサポートしています
  • 設定可能なターゲット URL
  • 透過的なリクエスト/レスポンスの転送
  • 拡張可能なミドルウェア互換性

適している対象

  • Shelf を使用するバックエンド開発者
  • プロキシロジックを必要とするフルスタックのFlutterアプリ
  • リクエストルーティングを必要とする開発/テスト環境
  • マイクロサービス通信のセットアップ
  • APIのモック化とデバッグ

注意事項

  • ダウンストリームの障害に対する適切なエラー処理が必要です
  • ターゲットサーバーによっては遅延が発生する可能性があります
  • 本番環境での使用にはセキュアな設定が必要です
  • 限定された組み込み認証メカニズム
  • CORSポリシーは外部で管理する必要があります

元の 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 件

ソースリポジトリ

このパッケージを使用しているプロジェクト