spry 3.0.0-dev.2 spry: ^3.0.0-dev.2 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) => 'Hello, World!', method: 'get', path: '/');
app.on((event) => 'Hello, ${event.parameters.get('name')}!',
method: 'post', path: '/:name');
await app.startup();
}