diff options
author | Marco Cirillo <maranda@lightwitch.org> | 2013-04-07 12:23:29 +0000 |
---|---|---|
committer | Marco Cirillo <maranda@lightwitch.org> | 2013-04-07 12:23:29 +0000 |
commit | c35e7caa9fca47fa9daa73a0012cd296cd28b641 (patch) | |
tree | cc2246256af4ccd22b655d621c9ca50573f8c750 /net/http/server.lua | |
parent | ac8cdca4e113c908589f4ce40bf7d6ac9ad94854 (diff) | |
download | prosody-c35e7caa9fca47fa9daa73a0012cd296cd28b641.tar.gz prosody-c35e7caa9fca47fa9daa73a0012cd296cd28b641.zip |
net.http.server: add API to allow firing events directly on the server.
Diffstat (limited to 'net/http/server.lua')
-rw-r--r-- | net/http/server.lua | 3 |
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; |