Dancer2::RPCPlugin - Role to support generic dispatch-table-building
Positional:
None.
<jsonrpc|restrpc|xmlrpc>
Named:
An instance of the class Dancer2::RPCPlugin::DispatchItem.
Setup the structure for listing the rpc-methods that should be in the dispatch-table.
Returns a CodeRef that will be used in the execution of the remote procedure call.
A hashref that may contain a code_wrapper key and value.
code_wrapper
When passed via the \%config HashRef, that code_wrapper, otherwise the default code_wrapper:
\%config
sub { my $code = shift; my $pkg = shift; $code->(@_); }
© MMXXII - Abe Timmerman <abeltje@cpan.org>
To install Dancer2::Plugin::RPC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer2::Plugin::RPC
CPAN shell
perl -MCPAN -e shell install Dancer2::Plugin::RPC
For more information on module installation, please visit the detailed CPAN module installation guide.