HTTPD Library
From SolarStrike wiki
Creating a cache instance
object Httpd()
object Httpd(table config)
The HTTPD library is optional and the module must be required before use. Next, the Httpd class must be instantiated:
require('httpd/httpd');
httpd = Httpd();
Optionally, you may provide config parameters:
httpd = Httpd({
ip = '0.0.0.0', -- The IP to bind to; use 0.0.0.0 to accept any connection; default 127.0.0.1
port = 80, -- The port to bind to; default 8080
controllerDir = '/Controllers/', -- Folder to look for controller objects; default /Controllers/
viewDir = '/Views/', -- Folder to look for view files & templates; default /Views/
staticDir = '/Static/', -- Folder to look for static files (images, css, javascript, etc.); default /Static/
)};