net.http.server: add API to allow firing events directly on the server.
authorMarco Cirillo <maranda@lightwitch.org>
Sun, 7 Apr 2013 12:23:29 +0000 (12:23 +0000)
committerMarco Cirillo <maranda@lightwitch.org>
Sun, 7 Apr 2013 12:23:29 +0000 (12:23 +0000)
net/http/server.lua

index 20c2da3e96ab3574652a6d4cbbc2eba3097b76eb..830579c9e038a0192ab13119e62e36a3c4502e0b 100644 (file)
@@ -284,6 +284,9 @@ end
 function _M.set_default_host(host)
        default_host = host;
 end
+function _M.fire_event(event, ...)
+       return events.fire_event(event, ...);
+end
 
 _M.listener = listener;
 _M.codes = codes;