Updated static
This commit is contained in:
parent
340d8a926d
commit
346389f1ef
4 changed files with 9 additions and 7 deletions
|
@ -1,5 +1,9 @@
|
||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
## 4.0.2
|
||||||
|
|
||||||
|
* Updated README
|
||||||
|
|
||||||
## 4.0.1
|
## 4.0.1
|
||||||
|
|
||||||
* Fixed NNBD related issues
|
* Fixed NNBD related issues
|
||||||
|
|
|
@ -1,14 +1,12 @@
|
||||||
# Angel3 Static Files Handler
|
# Angel3 Static Files Handler
|
||||||
|
|
||||||
[](https://pub.dartlang.org/packages/angel3_static)
|
[](https://pub.dev/packages/angel3_static)
|
||||||
[](https://dart.dev/null-safety)
|
[](https://dart.dev/null-safety)
|
||||||
[](https://gitter.im/angel_dart/discussion)
|
[](https://gitter.im/angel_dart/discussion)
|
||||||
|
|
||||||
[](https://github.com/dukefirehawk/angel/tree/angel3/packages/static/LICENSE)
|
[](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).
|
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.*
|
||||||
|
|
||||||
*Can also handle `Range` requests now, making it suitable for media streaming, ex. music, video, etc.*
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,6 @@ void main(List<String> args) async {
|
||||||
app.fallback((req, res) => throw AngelHttpException.notFound());
|
app.fallback((req, res) => throw AngelHttpException.notFound());
|
||||||
|
|
||||||
var server = await http.startServer('127.0.0.1', 3000);
|
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}');
|
print('Listening at http://${server.address.address}:${server.port}');
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: angel3_static
|
name: angel3_static
|
||||||
description: Static server middleware for Angel. Also capable of serving Range responses.
|
description: This library provides a virtual directory to serve static files for Angel3 framework.
|
||||||
version: 4.0.1
|
version: 4.0.2
|
||||||
homepage: https://github.com/dukefirehawk/angel
|
homepage: https://github.com/dukefirehawk/angel
|
||||||
repository: https://github.com/dukefirehawk/angel/tree/angel3/packages/static
|
repository: https://github.com/dukefirehawk/angel/tree/angel3/packages/static
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in a new issue