tree: 6811f8a83c865d664b3718e42fe27fe1f6b173c8
  1. benchmark/
  2. example/
  3. lib/
  4. test/
  5. CHANGELOG.md
  6. LICENSE
  7. mono_pkg.yaml
  8. pubspec.yaml
  9. README.md
pkgs/shelf_static/README.md

pub package package publisher

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