feat: initial commit

This commit is contained in:
Eugene Prodan
2021-06-06 20:26:13 +03:00
commit 65c93fa871
4 changed files with 51 additions and 0 deletions

10
scripts/guard.lua Normal file
View File

@ -0,0 +1,10 @@
guard = {}
function guard.hello_world(applet)
applet:set_status(200)
local response = string.format([[<html><body>Hello World!</body></html>]], message);
applet:add_header("content-type", "text/html");
applet:add_header("content-length", string.len(response))
applet:start_response()
applet:send(response)
end