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

パッケージ詳細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アプリケーション
  • HTTPメッセージ処理にDartを使用するバックエンドサービス

注意事項

  • 完全な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 件

ソースリポジトリ

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

ランキング