1 mg.write("HTTP/1.0 200 OK\r\n")
2 mg.write("Content-Type: text/plain\r\n")
4 mg.write(mg.request_info.request_method .. " " .. mg.request_info.request_uri .. " HTTP/" .. mg.request_info.http_version .. "\r\n")
5 for k,v in pairs(mg.request_info.http_headers) do
6 mg.write(k .. ": " .. v .. "\r\n")