mod_stanza_counter/mod_stanza_counter_http.lua
changeset 518 d4adda950546
parent 437 78a2a6b2bea3
child 535 39c7115be370
equal deleted inserted replaced
517:f866325305ed 518:d4adda950546
     1 -- (C) 2011, Marco Cirillo (LW.Org)
     1 -- (C) 2011, Marco Cirillo (LW.Org)
     2 -- Exposes stats on HTTP for the stanza counter module.
     2 -- Exposes stats on HTTP for the stanza counter module.
     3 
     3 
     4 module:set_global()
     4 module:set_global()
     5 
     5 
     6 local ports = module:get_option_array("stanza_counter_http_ports" or {{ port = 5280 }})
     6 local ports = module:get_option_array("stanza_counter_http_ports", {{ port = 5280 }})
     7 
     7 
     8 local httpserver = require "net.httpserver"
     8 local httpserver = require "net.httpserver"
     9 
     9 
    10 -- http handlers
    10 -- http handlers
    11 
    11