move syncFuture to test_util
1 file changed
tree: f2947e84f0b8538f75545219b64dfb5468155c00
  1. example/
  2. lib/
  3. test/
  4. .gitignore
  5. CHANGELOG.md
  6. LICENSE
  7. pubspec.yaml
  8. README.md
README.md

shelf_static is a Handler for the Dart shelf package.

Build Status

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);
}