lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


In the grand tradition of xavante and luahttpd, here is yet another Lua HTTP server daftly named LW (aka LuaWeb).

Nothing much to look at for the moment as there is only one service defined, but perhaps one day it will grow up to become a diminutive app server of sort :)

Short example:

-- Start the application
local anApplication = "*", 1080 ).start()

-- Register a service
anApplication.registerService( "/file/", "/Volumes/tmp" ) )

-- Start the run loop

Get a file:

% telnet localhost 1080
Connected to localhost.
Escape character is '^]'.
HEAD /file/alien.gif HTTP/1.1
HTTP/1.1 200 OK
connection: close
content-disposition: inline; filename="alien.gif"
content-encoding: utf-8
content-type: image/gif
date: Sat, 12 Mar 2005 01:06:20 GMT
last-modified: Sat, 08 Nov 2003 19:58:58 GMT
length: 924
server: LW/0.1

Gritty details available online:


PA, Onnay Equitursay