10 lines
244 B
Text
10 lines
244 B
Text
ss = newJava["java.net.ServerSocket", 8080]
|
|
while true
|
|
{
|
|
sock = ss.accept[];
|
|
w = new Writer[sock.getOutputStream[]]
|
|
w.println["HTTP/1.1 200 OK"]
|
|
w.println["Content-Type: text/plain\n"]
|
|
w.println["Goodbye, World!"]
|
|
w.close[]
|
|
}
|