Mercurial > prosody-hg
diff net/http/server.lua @ 7582:e080b8b4f3cb
net.http.server: Add luacheck annotations
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 18 Aug 2016 15:21:30 +0200 |
| parents | 01d0d466d7be |
| children | c7d6c2558a24 |
line wrap: on
line diff
--- a/net/http/server.lua Thu Aug 18 15:16:02 2016 +0200 +++ b/net/http/server.lua Thu Aug 18 15:21:30 2016 +0200 @@ -32,7 +32,7 @@ end local _handlers = events._handlers; -local recent_wildcard_events = cache.new(10000, function (key, value) +local recent_wildcard_events = cache.new(10000, function (key, value) -- luacheck: ignore 212/value rawset(_handlers, key, nil); end); @@ -174,7 +174,7 @@ end }); -function _M.hijack_response(response, listener) +function _M.hijack_response(response, listener) -- luacheck: ignore error("TODO"); end function handle_request(conn, request, finish_cb)
