dart /
shelf /
6eb4a7a414315f176520fe6b15e23ae98c7e49e0 Add support for shelf 0.6.0
5 files changed
tree: 879fb2c7c3055d62a85149a95c494b5a406b4c3a
- 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);
}