shelf_static 1.1.0 copy "shelf_static: ^1.1.0" to clipboard
shelf_static: ^1.1.0 copied to clipboard

outdated

Static file server support for the shelf package and ecosystem

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);
}
84
likes
0
pub points
99%
popularity

Publisher

verified publishertools.dart.dev

Static file server support for the shelf package and ecosystem

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

convert, http_parser, mime, path, shelf

More

Packages that depend on shelf_static