jaguar 2.0.1 jaguar: ^2.0.1 copied to clipboard
Jaguar is a production ready HTTP server framework built for speed, simplicity and extensiblity
import 'package:jaguar/jaguar.dart';
main() async {
final server = new Jaguar(port: 10000);
server
..get('/', (ctx) => 'Get')
..post('/', (ctx) => 'Post')
..getJson('/json', (ctx) => {'method': 'get'})
..postJson('/json', (ctx) => {'method': 'post'});
await server.serve();
}