function handle_request(env)
uhttpd.send("Status: 200 OK\r\n")
uhttpd.send("Content-Type: text/html\r\n\r\n")
uhttpd.send("
Headers
\n")
for k, v in pairs(env.headers) do
uhttpd.send(string.format("%s: %s
\n", k, v))
end
uhttpd.send("Environment
\n")
for k, v in pairs(env) do
if type(v) == "string" then
uhttpd.send(string.format("%s=%s
\n", k, v))
end
end
end