dart /
shelf /
3b206d32074f11e35223fa336e7c2530089df047 support the latest version of args
1 file changed
tree: 3e43bb88aa8640145b7a43c3ab23d81e12b47863
- 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);
}