diff options
Diffstat (limited to 'plop.1')
-rw-r--r-- | plop.1 | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -1,12 +1,17 @@ -.TH plop 1 "2020-05-08" +.TH plop 1 "2020-08-15" .SH NAME -plop \- small framework for Lua web applications +plop \- Hackable small standalone engine for Lua web applications .SH SYNOPSIS .B plop .IR port .IR handler .SH DESCRIPTION .B plop -starts a http/1.1 server listening on designated port and handling incoming request by calling a -.B Handler(request) -global function that should be defined in handler Lua file. +loads +.IR handler +Lua script and starts a HTTP/1.1 server listening on a designated port. The script is loaded as if +.B require +was used with module name +.B handler +and the return value is set as global variable with the same name. Loaded script is expected to return a function which +will be used to handle each request. |