Support http_parser 2.0.0.
Support http_parser 2.0.0.

R=kevmoo@google.com

Review URL: https://codereview.chromium.org//1524943002 .
2 files changed
tree: 81009b62022469d93f024135bf30f90fe3ec6196
  1. .gitignore
  2. .travis.yml
  3. CHANGELOG.md
  4. CONTRIBUTING.md
  5. LICENSE
  6. README.md
  7. codereview.settings
  8. example/
  9. lib/
  10. pubspec.yaml
  11. test/
  12. tool/
README.md

shelf_static is a Handler for the Dart shelf package.

Build Status Coverage 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);
}