dart /
shelf /
b313e64b1b4eb33737e9502f0010cf196544daab fix mime type for default document
2 files changed
tree: 42fae67d033b7b67a4445ead906c82a41b0c883e
- example/
- lib/
- test/
- tool/
- .gitignore
- CHANGELOG.md
- LICENSE
- pubspec.yaml
- README.md
README.md
shelf_static
is a Handler
for the Dart shelf
package.
![Build Status](https://drone.io/github.com/kevmoo/shelf_static.dart/status.png)
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);
}