Pakete, Repositories und App-Kategorien suchen

Paketdetailsv1.2.0

shelf_static

Statische Datei-Server-Unterstützung für das Shelf-Paket und Ökosystem.

AndroidiOSmacOSWindowsLinux
30-Tage-Downloads
14,5 Mio.
Likes
98
Pub-Punkte
160

Paket installieren

flutter pub add shelf_static

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

Shelf Static ist ein Dart-Paket, das statische Dateiabgabe-Funktionen für den Shelf-Webserver-Framework bereitstellt. Es ermöglicht Entwicklern, statische Assets wie HTML, CSS, JavaScript und Bilder aus einem angegebenen Verzeichnis bereitzustellen, was es ideal für die Bereitstellung einfacher Webanwendungen oder zur Lieferung von Frontend-Ressourcen neben dynamischen APIs macht. Aufbauend auf dem Shelf-Ökosystem integriert es sich nahtlos mit anderen Shelf-Middleware-Komponenten und -Handler. Das Paket unterstützt effizientes Dateicaching, automatische Erkennung des Inhaltsformats und optionalen Verzeichnisaufbau.

Anwendungsfälle

  • Statische Frontend-Dateien bereitstellen
  • Hosting einfacher Websites
  • Bereitstellung von Assets für APIs
  • Lokale Entwicklungsserver aktivieren
  • Unterstützung hybrider App-Backends

Hauptmerkmale

  • Einfache Integration mit Shelf
  • Automatische Erkennung des Inhaltsformats
  • Verzeichnisliste-Unterstützung
  • Dateicaching zur Leistungssteigerung
  • Konfigurierbarer Stammverzeichnis

Geeignet für

  • Webentwickler, die Shelf verwenden
  • Full-Stack-Dart-Anwendungen
  • Lokale Entwicklungs-Umgebungen
  • Einfache API + statische Website-Einrichtung
  • Backend-Dienste, die Dateiübertragung benötigen

Hinweise

  • Nicht empfehlenswert für den Einsatz im Produktionsmaßstab
  • Benötigt manuelle Sicherheitskonfiguration
  • Eingeschränkte erweiterte Funktionen wie Komprimierung
  • Keine integrierte Authentifizierung
  • Am besten geeignet für kleine bis mittlere Anforderungen an statische Dateien

Original-README

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

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.

Kategorien

Abhängigkeiten

Abhängigkeiten 5 Einträge

Quell-Repository

Projekte, die dieses Paket verwenden

Ranglisten