Dancer2::RPCPlugin::DispatchFromPod - Build dispatch-table from POD
use Dancer2::RPCPlugin::DispatchFromConfig; sub dispatch_call { my $config = plugin_setting(); my $dtb = Dancer2::RPCPlugin::DispatchFromConfig->new( ... ); return $dtb->build_dispatch_table(); }
This parses the text of the given packages, looking for Dispatch Table hints:
=for xmlrpc rpc-method real-sub =for restrpc rpc-method real-sub =for jsonrpc rpc-method real-sub
None
A hashref of rpc-method names as key and Dancer2::RPCPlugin::DispatchItem objects as values.
(c) MMXV - 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.