projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
022a63e
)
net.http.server: add API to allow firing events directly on the server.
author
Marco Cirillo
<maranda@lightwitch.org>
Sun, 7 Apr 2013 12:23:29 +0000
(12:23 +0000)
committer
Marco Cirillo
<maranda@lightwitch.org>
Sun, 7 Apr 2013 12:23:29 +0000
(12:23 +0000)
net/http/server.lua
patch
|
blob
|
history
diff --git
a/net/http/server.lua
b/net/http/server.lua
index 20c2da3e96ab3574652a6d4cbbc2eba3097b76eb..830579c9e038a0192ab13119e62e36a3c4502e0b 100644
(file)
--- 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;