dart /
shelf /
ba82de7a022487bfcb5a967e6b058aeb47035ac0 move syncFuture to test_util
1 file changed
tree: f2947e84f0b8538f75545219b64dfb5468155c00
- example/
- lib/
- test/
- .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);
}