-- UNIX Finger Example local function WriteForm(host, user) Write([[
redbean unix finger demo
Your redbean is able to function as an finger client. Lua server
pages can use the unix module to implement protocols
that your redbean wasn't originally intended to support. All it
takes is few lines of code!
\r\n')
Write(EscapeHtml(VisualizeControlCodes(response)))
Write('\r\n')
else
ServeError(405)
SetHeader('Allow', 'GET, HEAD, POST')
end
end
main()