Fix an issue with range support, prepare for release (#62) Removed content-length header when sending a 4xx response Added corresponding test Also cleaned up the implementation by DRYing up access to regex matches
shelf_static is a Handler for the Dart shelf package.
shelf_static
Handler
shelf
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); }