Author image Olli Hollmen
and 1 contributors


JRPC::Apache2 - JSON-RPC Services in Apache2 / mod_perl runtime


This package is a mod_perl JSON-RPC handler / dispatcher. It only contains the conventional mod_perl handler($r) callback method (see mod_perl documentation for details: ). Do not call the handler() method directly, but assign it to be used as a mod_perl handler (Servicpackage "Math" is used here for an example):

   # Load Service Package (for JRPC::Apache2 to use)
   PerlModule Math;
   # Assign directly to a URL Location / path by
   <Location /Math>
     SetHandler modperl
     PerlResponseHandler JRPC::Apache2