dart /
shelf /
refs/tags/shelf_static-v0.1.4+3 v0.1.4+3
Updated readme w/ an example of defaultDocument
2 files changed
tree: cc1efc5d803842dcc878a5131bc92de7bf95a94b
- 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);
}