net.http.server: add API to allow firing events directly on the server.
authorMarco Cirillo <maranda@lightwitch.org>
Sun, 07 Apr 2013 12:23:29 +0000
changeset 5439 bd7b314c2301
parent 5438 5032b3b5b556
child 5440 a943e5cbf083
net.http.server: add API to allow firing events directly on the server.
net/http/server.lua
--- a/net/http/server.lua	Sat Apr 06 20:07:08 2013 +0100
+++ b/net/http/server.lua	Sun Apr 07 12:23:29 2013 +0000
@@ -284,6 +284,9 @@
 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;