JSON::RPC::Common::Marshal::Catalyst - Convert Catalyst::Request to JSON::RPC::Common:Call.
Based on JSON::RPC::Common::Marshal::HTTP. Only one method has been overriden.
use JSON::RPC::Common::Marshal::Catalyst; sub simple_json_endpoint : Local { my ($self, $c, @args) = @_; my $m = JSON::RPC::Common::Marshal::Catalyst->new; my $call = $m->request_to_call($c->req); my $res = $call->call($self); $m->write_result_to_response($c->res); }
This object provides marshalling routines to convert Catalyst::Request to JSON::RPC::Common:Call object.
Use JSON::RPC::Common::Marshal::Catalyst to work with HTTP::Request
Convert an Catalyst::Request to a JSON::RPC::Common::Procedure::Call. Overriden method only differ from parent that use $request->body instead of $request->content;
To install Catalyst::Plugin::Server::JSONRPC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::Server::JSONRPC
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::Server::JSONRPC
For more information on module installation, please visit the detailed CPAN module installation guide.