aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Cirillo <maranda@lightwitch.org>2013-04-07 12:23:29 +0000
committerMarco Cirillo <maranda@lightwitch.org>2013-04-07 12:23:29 +0000
commita7e34e1b7373ac2ebc862e6544861e07e8531739 (patch)
treecc2246256af4ccd22b655d621c9ca50573f8c750
parent1be1759e44702bd8c64a3dc393f9aa515dc019f1 (diff)
downloadprosody-a7e34e1b7373ac2ebc862e6544861e07e8531739.tar.gz
prosody-a7e34e1b7373ac2ebc862e6544861e07e8531739.zip
net.http.server: add API to allow firing events directly on the server.
-rw-r--r--net/http/server.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/http/server.lua b/net/http/server.lua
index 20c2da3e..830579c9 100644
--- a/net/http/server.lua
+++ b/net/http/server.lua
@@ -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;