Created
August 29, 2016 14:45
-
-
Save axross/33cbc7dc8da1faa13b5c23230d395aed to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:io' show HttpServer, HttpRequest; | |
| main() { | |
| HttpServer.bind('127.0.0.1', 8000) | |
| .then((server) { | |
| server.listen((HttpRequest request) { | |
| request.response | |
| ..write('Hello, World!') | |
| ..close(); | |
| }); | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment