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

Static file server support for the shelf package and ecosystem.

pub package package publisher

shelf_static is a Handler for the Dart shelf package.

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);
}
87
likes
160
points
4.76M
downloads

Publisher

verified publishertools.dart.dev

Weekly Downloads

Static file server support for the shelf package and ecosystem.

Repository (GitHub)
View/report issues
Contributing

Topics

#server #shelf

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

convert, http_parser, mime, path, shelf

More

Packages that depend on shelf_static