spry 3.0.0-dev.1 spry: ^3.0.0-dev.1 copied to clipboard
Spry is an HTTP middleware framework for Dart to make web applications and APIs server more enjoyable to write.
import 'package:spry/spry.dart';
void main(List<String> args) async {
final app = Spry(arguments: args);
app.on((event) => 'xxx', method: 'get', path: '/');
await app.servers.current.start();
print('Listening on http://${app.servers.hostname}:${app.servers.port}');
}