Apache-ExtDirect
view release on metacpan or search on metacpan
lib/Apache/ExtDirect/Router.pm view on Meta::CPAN
### PUBLIC MOD_PERL HANDLER ###
#
# Handle Ext.Direct routing requests
#
sub handler {
my ($r) = @_;
local $RPC::ExtDirect::Router::DEBUG = $DEBUG;
# If anything but POST method is used, throw an error
return Apache2::Const::DECLINED
if $r->method ne 'POST';
my $cgi = CGI->new($r);
my $router_input = Apache::ExtDirect::Router->_extract_post_data($cgi);
# If input is undefined, extraction have failed
return Apache2::Const::SERVER_ERROR
unless defined $router_input;
( run in 0.279 second using v1.01-cache-2.11-cpan-496ff517765 )