NetSDS::App::JSRPC - JSON-RPC server framework
use 5.8.0; JServer->run(); 1; package JServer; use base 'NetSDS::App::JSRPC'; # This method is available via JSON-RPC sub sum { my ($this, $param) = @_; return $$param[0] + $$param[1]; } 1;
NetSDS::App::JSRPC module implements framework for common JSON-RPC service.
NetSDS::App::JSRPC
This implementation is based on NetSDS::App::FCGI module and expected to be executed as FastCGI or CGI service.
Both request and response should be of 'application/x-json-rpc' MIME type.
This is internal method that implements JSON-RPC call processing.
Paramters: method name, parameters.
Returns parameters from executed method as is.
Paramters: HTTP POST data as string
Returns: request method, parameters, id
Paramters:
Returns JSON encoded response message
Internal method implementing error response.
Returns JSON encoded error message
See samples/app_jsrpc.fcgi appliction.
samples/app_jsrpc.fcgi
Unknown yet
None
* move error codes to constants
Michael Bochkaryov <misha@rattler.kiev.ua>
To install NetSDS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm NetSDS
CPAN shell
perl -MCPAN -e shell install NetSDS
For more information on module installation, please visit the detailed CPAN module installation guide.