RPC::Any::Interface::PSGI - PSGI interface for RPC::Any
# in app.psgi use RPC::Any::Server::JSONRPC::PSGI; # Create a server where calling Foo.bar will call My::Module->bar. my $server = RPC::Any::Server::JSONRPC::PSGI->new( dispatch => { 'Foo' => 'My::Module' }, allow_get => 0, ); my $handler = sub{ $server->handle_input(@_) };
RPC::Any::Interface::PSGI is a PSGI interface for RPC::Any. It is based on RPC::Any::Interface::CGI and allows you to run RPC::Any::Server subclasses on any web servers that support PSGI.
This module cannot be used directly. You must use RPC::Any::Server subclasses that consume this module such as RPC::Any::Server::JSONRPC::PSGI and RPC::Any::Server::XMLRPC::PSGI.
Sherwin Daganato <sherwin@daganato.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
RPC::Any Plack PSGI
To install RPC::Any::Interface::PSGI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RPC::Any::Interface::PSGI
CPAN shell
perl -MCPAN -e shell install RPC::Any::Interface::PSGI
For more information on module installation, please visit the detailed CPAN module installation guide.