dart /
shelf /
4f69983225782f16a4dc1297c0d14096712215aa updated travis integration
2 files changed
tree: a2eaae59198ef924d4162d58cf258fa72fd8a7b3
- 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);
}