Handle sub-second resolution in DateTime vs second-resolution in HTTP date
5 files changed
tree: e801e8898895753dce1aa4344c122a769d8ab786
- example/
- lib/
- test/
- tool/
- .gitignore
- CHANGELOG.md
- LICENSE
- pubspec.yaml
- README.md
README.md
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);
}