Clone this repo:
  1. 9a0acec Move to pkg:lints (#68) by Kevin Moore · 4 months ago master
  2. 202ec1a Refactor range support implementation (#66) by Nate Bosch · 6 months ago
  3. 4c459ce Add no response bot by Kevin Moore · 6 months ago
  4. b71f79d Dart format with latest SDK (#63) by Kevin Moore · 6 months ago
  5. fb6b7d0 Fix an issue with range support, prepare for release (#62) by Kevin Moore · 7 months ago v1.1

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