Last updated:
0 purchases
server
Server #
web framework for Dart
It has simple API
import 'package:server/server.dart';
void main() {
server(port: 8888).then((Server app) {
app.get('/hello/:name.:lastname?').listen((request) {
request.response
.header('Content-Type', 'text/html; charset=UTF-8')
.send('Hello, ${request.param('name')} ${request.param('lastname')}');
});
});
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.