Clone this repo:
  1. fb4506e Prepare for release, remove deprecated constants, support Dart 2 gold by Kevin Moore · 6 weeks ago master v0.2.8
  2. 9e367fb Make the example dart logo a lot smaller by Kevin Moore · 6 weeks ago
  3. 5f53278 sort directory listings (#33) by Devon Carew · 6 weeks ago
  4. d8b8ea5 update dart images (#32) by Devon Carew · 6 weeks ago
  5. eecf576 Update .gitignore to new `dart_tool` pub cache (#31) by BC Ko · 3 months ago

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