Clone this repo:
  1. 202ec1a Refactor range support implementation (#66) by Nate Bosch · 10 weeks ago master
  2. 4c459ce Add no response bot by Kevin Moore · 2 months ago
  3. b71f79d Dart format with latest SDK (#63) by Kevin Moore · 3 months ago
  4. fb6b7d0 Fix an issue with range support, prepare for release (#62) by Kevin Moore · 3 months ago v1.1
  5. dc91ae9 support content-range header (#59) by Nightmare-MY · 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);
}