Run CI on windows and linux

Also analyzer with strict checks
Also test on oldest supported SDK
skip symlink file tests on Windows
2 files changed
tree: ef8c784f8436279987f44a5f7abb80a56071dcdf
  1. .gitignore
  2. .travis.yml
  3. CHANGELOG.md
  4. CONTRIBUTING.md
  5. LICENSE
  6. README.md
  7. analysis_options.yaml
  8. example/
  9. lib/
  10. pubspec.yaml
  11. test/
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);
}