Hello world/Web server: Difference between revisions
m
Fixed capitalization
m (→{{header|Phix}}: once) |
m (Fixed capitalization) |
||
Line 1,137:
{{libheader|LuaSocket}}
<lang lua>local socket = require "socket"
local headers = "HTTP/1.1 200 OK\r\
local content = "<!doctype html><html><title>Goodbye, World!</title><h1>Goodbye, World!"
local server = assert(socket.bind("localhost", 8080))
|