server_nano_nano 1.0.1 copy "server_nano_nano: ^1.0.1" to clipboard
server_nano_nano: ^1.0.1 copied to clipboard

A super light http server written in dart. All credits to https://github.com/jonataslaw/dart-server-nano

example/README.md

import 'package:server_nano/server_nano_nano.dart';

void main() {
  final server = Server();

  server.get('/', (req, res) {
    res.sendJson({'Hello': 'World!'});
  });

  server.get('/user/:id', (req, res) async {
    await Future.delayed(Duration(seconds: 2));
    res.send('Hello User ${req.params['id']}!');
  });

  server.listen(port: 3000);
}
0
likes
140
points
43
downloads

Publisher

unverified uploader

Weekly Downloads

A super light http server written in dart. All credits to https://github.com/jonataslaw/dart-server-nano

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

collection, mime, path

More

Packages that depend on server_nano_nano