Clone this repo:
  1. 5b7e017 only verify analyzer on dev + linux by Kevin Moore · 5 weeks ago master
  2. 77cd3f2 Run CI on windows and linux by Kevin Moore · 5 weeks ago
  3. 58f726f Enable and fix a number of lints by Kevin Moore · 5 weeks ago
  4. 34b8029 Remove .test_config by Kevin Moore · 5 weeks ago
  5. 9e5c576 Use file modified date for 304 checks ("changed" is creation date on Windows) (#38) by Kevin Moore · 5 weeks 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);
}