The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Dancer2::RPCPlugin::DispatchFromPod - Build dispatch-table from POD

SYNOPSIS

    use Dancer2::RPCPlugin::DispatchFromConfig;
    sub dispatch_call {
        my $config = plugin_setting();
        my $dtb = Dancer2::RPCPlugin::DispatchFromConfig->new(
            ...
        );
        return $dtb->build_dispatch_table();
    }

DESCRIPTION

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

Dancer2::RPCPlugin::DispatchFromPod->new(%parameters)

Parameters

plugin_object => An instance of the current plugin
plugin => <jsonrpc|restrpc|xmlrpc>
packages => a list (ArrayRef) of package names to be parsed
endpoint => $endpoint

$dfp->build_dispatch_table()

Parameters

None

Responses

A hashref of rpc-method names as key and Dancer2::RPCPlugin::DispatchItem objects as values.

COPYRIGHT

(c) MMXV - Abe Timmerman <abeltje@cpan.org>