dart /
shelf /
116fb3520c737b0f2e458791aea5c23190651a87 tweaks to readme and changelog
2 files changed
tree: d43ab68890619852e1bbc6e4a15cdc4621a28267
- 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);
}