Pakete, Repositories und App-Kategorien suchen

Paketdetailsv1.6.0

http

Eine zusammensetzbare, plattformübergreifende, auf Future basierende API für HTTP-Anfragen.

AndroidiOSWebmacOSWindowsLinux
30-Tage-Downloads
15,1 Mio.
Likes
8480
Pub-Punkte
160

Paket installieren

flutter pub add http

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

Das http-Paket bietet eine flexible, plattformübergreifende Lösung für HTTP-Anfragen in Dart- und Flutter-Anwendungen. Auf Futures basierend unterstützt es sowohl synchrone als auch asynchrone Operationen auf Android, iOS, Web, macOS, Windows und Linux. Das Paket legt Wert auf Komposition und ermöglicht Entwicklern, HTTP-Clients mit benutzerdefinierten Headern, Zeitüberschreitungen und Interzeptoren einfach zu erstellen und zu verwalten. Es vereinfacht alltägliche Aufgaben wie GET-, POST-, PUT- und DELETE-Anfragen und ist daher ideal für die Integration mit RESTful-APIs und Webdiensten.

Anwendungsfälle

  • REST-APIs nutzen
  • Formulardaten senden
  • Umgang mit JSON-Antworten
  • Authentifizierte Anfragen stellen
  • Streaming-Datei-Downloads
  • HTTP-Aufrufe abfangen

Hauptmerkmale

  • zukunftsorientierte API
  • Multiplattformunterstützung
  • Anpassbare Client-Instanzen
  • Eingebaute JSON-Verarbeitung
  • Anfrage/Antwort-Ausnahme
  • Unterstützung für Header und Authentifizierung

Geeignet für

  • Flutter-Mobilanwendungen
  • Web-Anwendungen
  • Desktop-Anwendungen
  • API-Integrationprojekte
  • Backend-Dienstkommunikation

Hinweise

  • Benötigt manuelle Fehlerbehandlung
  • Kein integrierter Cache
  • Beschränkt auf grundlegende HTTP-Operationen
  • Nicht geeignet für komplexe Netzwerkszenarien
  • Abhängig von externen Abhängigkeiten für erweiterte Funktionen
  • Enthält keine WebSocket-Unterstützung

Original-README

Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.

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.

Kategorien

Abhängigkeiten

Abhängigkeiten 4 Einträge

Quell-Repository

Projekte, die dieses Paket verwenden

Ranglisten