Software /
code /
prosody
Diff
net/http/server.lua @ 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 |
parent | 5404:ae9a47e579d7 |
child | 5487:03ddf2375d48 |
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;