dart /
shelf /
88d0eb29c0fb760f7b63dccd457324461db02ff1 move basic static logic into its own mini-lib
2 files changed
tree: 586567797d72824bd3ddf4a6e43948fb5045aa91
- example/
- lib/
- test/
- tool/
- .gitignore
- CHANGELOG.md
- LICENSE
- pubspec.yaml
- README.md
README.md
shelf_static
is a Handler
for the Dart shelf
package.
Example
import 'package:shelf/shelf_io.dart' as io;
import 'package:shelf_static/shelf_static.dart';
void main() {
var handler = createStaticHandler('example/files',
defaultDocument: 'index.html')
io.serve(handler, 'localhost', 8080);
}