dart /
shelf /
957c1966238162d908d5cc34ae5b16bdcda1456a Support on Travis CI and coverage
3 files changed
tree: ca738b756e73fb1b0cc8c44af16151e0ea64fbee
- example/
- lib/
- test/
- tool/
- .gitignore
- .travis.yml
- 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);
}