Produits Support Open Source Company
 
 
 
Home > Wiki > Talk:ejabberd HTTP request handlers

Article - Talk Talk:ejabberd HTTP request handlers

{5280ejabberd_http,    [http_pollweb_admin,
                          
{request_handlers[{["hello"]mod_http_hello}]}]} 

this if one http handler, but if two?

{5280ejabberd_http,    [http_pollweb_admin,
                          
{request_handlers[{["hello"]mod_http_hello},
                          
{request_handlers[{["http-bind"]mod_http_bind}]} 

am I right?

~~~~:

{5280ejabberd_http,    [...
                          
{request_handlers
                             
[
                               {[
"hello"]mod_http_hello},
                               
{["other","other2"]mod_http_other},
                                ...
                             
]}, ... 

Note, record #request has been changed in ejabberd_http.hrl, i.e. it is differ from one in the article text.

 
 
 
Valid HTML 4.01!   Valid CSS!