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

パッケージ詳細v1.6.0

http

HTTPリクエスト用のコンポーザブルでマルチプラットフォームなFutureベースのAPI。

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

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

flutter pub add http

パッケージ概要

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

http パッケージは、Dart および Flutter アプリケーションで HTTP リクエストを行うための柔軟でクロスプラットフォーム対応のソリューションを提供します。Future を基盤としており、Android、iOS、Web、macOS、Windows、Linux での同期および非同期操作をサポートしています。このパッケージはコンポーザビリティを重視しており、カスタムヘッダー、タイムアウト、インターセプターを備えた HTTP クライアントを簡単に構築・管理できるようにしています。GET、POST、PUT、DELETE リクエストなどの一般的なタスクを簡素化し、RESTful API やウェブサービスとの統合に最適です。

用途

  • REST APIの利用
  • フォームデータの送信
  • JSON応答の処理
  • 認証されたリクエストの作成
  • ストリーミングファイルのダウンロード
  • HTTP コールのインターセプト

主な機能

  • 将来指向の API
  • マルチプラットフォーム対応
  • カスタマイズ可能なクライアントインスタンス
  • 組み込みのJSON処理
  • リクエスト/レスポンスのインターセプト
  • ヘッダーおよび認証のサポート

適している対象

  • Flutter モバイルアプリ
  • ウェブアプリケーション
  • デスクトップアプリ
  • API インテグレーションプロジェクト
  • バックエンドサービス通信

注意事項

  • 手動でのエラー処理が必要です
  • 組み込みキャッシュなし
  • 基本的なHTTP操作に限定
  • 複雑なネットワークシナリオには適していません
  • 高度な機能には外部の依存関係に依存しています
  • WebSocketサポートを含んでいません

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

ソースリポジトリ

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

ランキング