dart /
shelf /
afe2d92cd5a59d7a33b817be3974e88a8a838479 example: allow opt-out of logging (better for perf testing)
2 files changed
tree: 8f7825bcbacf84a7150301b5881928724267825e
- 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);
}