| Index: mojo/public/dart/third_party/shelf_static/README.md
|
| diff --git a/mojo/public/dart/third_party/shelf_static/README.md b/mojo/public/dart/third_party/shelf_static/README.md
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ffe0e26cc5d27bfc177ee47fb163059d0ba2579c
|
| --- /dev/null
|
| +++ b/mojo/public/dart/third_party/shelf_static/README.md
|
| @@ -0,0 +1,17 @@
|
| +`shelf_static` is a `Handler` for the Dart `shelf` package.
|
| +
|
| +[](https://travis-ci.org/dart-lang/shelf_static?branch=master)
|
| +[](https://coveralls.io/github/dart-lang/shelf_static?branch=master)
|
| +
|
| +### Example
|
| +```dart
|
| +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);
|
| +}
|
| +```
|
|
|