Skip to content

Instantly share code, notes, and snippets.

@enyo
Last active September 30, 2021 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enyo/64ae6dfca6389243899f55b3328ca8ac to your computer and use it in GitHub Desktop.
Save enyo/64ae6dfca6389243899f55b3328ca8ac to your computer and use it in GitHub Desktop.
Writing server side Dart code
import 'dart:io';
main() async {
final server = await HttpServer.bind(InternetAddress.anyIPv6, 80);
server.listen((HttpRequest request) {
request.response.write('Hello, world!');
request.response.close();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment