GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Dancer::RPCPlugin::DispatchFromPod(3) User Contributed Perl Documentation Dancer::RPCPlugin::DispatchFromPod(3)

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

    use Dancer::Plugin;
    use Dancer::RPCPlugin::DispatchFromPod;
    sub dispatch_call {
        return dispatch_table_from_pod(%parameters);
    }

Interface to build a (partial) dispatch table from the special pod-directives in the packages specified and for the optional endpoint specified.

One can specify a sub/method to be used for the RPCPlugin by using the POD directive "=for" followed by the rpc-protocol supported by this plugin-set. One of jsonrpc, restrpc and xmlrpc.

    =for <protocol> <rpc-name> <real-code-name>[ <endpoint>]
<protocol> must be one of <jsonrpc|restrpc|xmlrpc>
<rpc-name> is the name used by the rpc-interface to execute this call, different protocols may use diffent 'rpc-name's to reflect the nature of the protocol.
<real-code-name> is the name of the sub/method
<endpoint> this optional argument is needed for files/packages that have code for different endpoints.

The pod-directive must be in the same file the code it refers to is.

Make sure the partial dispatch table for a single endpoint is build in a single pass.

Parameters

Named:

plugin => <jsonrpc|restrpc|xmlrpc>
packages => [ $package_name, ... ]
endpoint => '/endpoint_for_dispatch_tabledispatch_table'

Responses

A (partial) dispatch-table.

(c) MMXV - Abe Timmerman <abeltje@cpan.org>
2018-06-17 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.