[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: LuaWeb
- From: PA <petite.abeille@...>
- Date: Sat, 12 Mar 2005 01:10:18 +0100
Hello,
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 = LWApplication.new( "*", 1080 ).start()
-- Register a service
anApplication.registerService( LWFileService.new( "/file/",
"/Volumes/tmp" ) )
-- Start the run loop
SocketRunLoop.default().start()
Get a file:
% telnet localhost 1080
Trying 127.0.0.1...
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:
http://dev.alt.textdrive.com/browser/LW/
Cheers
--
PA, Onnay Equitursay
http://alt.textdrive.com/