Changeset

5439:bd7b314c2301

net.http.server: add API to allow firing events directly on the server.
author Marco Cirillo <maranda@lightwitch.org>
date Sun, 07 Apr 2013 12:23:29 +0000
parents 5438:5032b3b5b556
children 5440:a943e5cbf083
files net/http/server.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;