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/Pike/hello-world-web-server.pike
Normal file
11
Task/Hello-world-Web-server/Pike/hello-world-web-server.pike
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
void handle_request(Protocols.HTTP.Server.Request request)
|
||||
{
|
||||
request->response_and_finish( ([ "data":"Goodbye, World!",
|
||||
"type":"text/html" ]) );
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
Protocols.HTTP.Server.Port(handle_request, 8080);
|
||||
return -1; // -1 is a special case that retirns control to the backend
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue