blob: 4aea82347ac754b86340b6f690398fec29a28620 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
.TH plop 1 "2020-08-24"
.SH NAME
plop \- Small hackable standalone engine for Lua web applications
.SH SYNOPSIS
.B plop [-p
.IR PORT ]
.IR HANDLER
.SH DESCRIPTION
.B plop
loads
.IR HADNLER
Lua script and starts a HTTP/1.1 server listening on a designated
.IR PORT .
If
.IR PORT
is not specified server starts listening on
.B 8080
by default. 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.
|