equal
deleted
inserted
replaced
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 |