Updated static

This commit is contained in:
thomashii 2021-07-10 09:48:47 +08:00
parent 340d8a926d
commit 346389f1ef
4 changed files with 9 additions and 7 deletions

View file

@ -1,5 +1,9 @@
# Change Log
## 4.0.2
* Updated README
## 4.0.1
* Fixed NNBD related issues

View file

@ -1,14 +1,12 @@
# Angel3 Static Files Handler
[![version](https://img.shields.io/badge/pub-v4.0.1-brightgreen)](https://pub.dartlang.org/packages/angel3_static)
[![version](https://img.shields.io/badge/pub-v4.0.2-brightgreen)](https://pub.dev/packages/angel3_static)
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
[![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion)
[![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/static/LICENSE)
This package supports serving static files such as html, css and js for [Angel3 framework](https://pub.dartlang.org/packages/angel3).
*Can also handle `Range` requests now, making it suitable for media streaming, ex. music, video, etc.*
This library provides a virtual directory to serve static files such as html, css and js for [Angel3 framework](https://pub.dev/packages/angel3). It can also handle `Range` requests, making it suitable for media streaming, i.e. music, video, etc.*
## Installation

View file

@ -35,6 +35,6 @@ void main(List<String> args) async {
app.fallback((req, res) => throw AngelHttpException.notFound());
var server = await http.startServer('127.0.0.1', 3000);
print('Serving from ${vDir.source!.path}');
print('Serving from ${vDir.source.path}');
print('Listening at http://${server.address.address}:${server.port}');
}

View file

@ -1,6 +1,6 @@
name: angel3_static
description: Static server middleware for Angel. Also capable of serving Range responses.
version: 4.0.1
description: This library provides a virtual directory to serve static files for Angel3 framework.
version: 4.0.2
homepage: https://github.com/dukefirehawk/angel
repository: https://github.com/dukefirehawk/angel/tree/angel3/packages/static
environment: