Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
11
Task/Hello-world-Web-server/Dart/hello-world-web-server.dart
Normal file
11
Task/Hello-world-Web-server/Dart/hello-world-web-server.dart
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import 'dart:io';
|
||||
|
||||
main() async {
|
||||
var server = await HttpServer.bind('127.0.0.1', 8080);
|
||||
|
||||
await for (HttpRequest request in server) {
|
||||
request.response
|
||||
..write('Hello, world')
|
||||
..close();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue