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::DispatchMethodList(3) User Contributed Perl Documentation Dancer::RPCPlugin::DispatchMethodList(3)

Dancer::RPCPlugin::DispatchMethodList - Class for maintaining a global methodlist.

    use Dancer::RPCPlugin::DispatchMethodList;
    my $methods = Dancer::RPCPlugin::DispatchMethodList->new();

    $methods->set_partial(
        protocol => <jsonrpc|restrpc|xmlrpc>,
        endpoint => </configured>,
        methods  => [ @method_names ],
    );

    # ....
    my $method_list = $methods->list_methods(protocol => <any|jsonrpc|restrpc|xmlrpc>);

This class implements a singleton that can hold the collection of all method names.

Parameters

None!

Responses

    $_singleton = bless $parameters, $class;

Parameters

Named, list:

protocol => <jsonrpc|restrpc|xmlrpc> (required)
endpoint => $endpoint (required)
methods => \@method_list

Responses

    $self

Method that returns information about the dispatch-table.

Parameters

Positional, list

1. $protocol => undef || <any|jsonrpc|restrpc|xmlrpc> (optional)

Responses

In case of no $protocol:

    {
        xmlrpc => {
            $endpoint1 => [ list ],
            $endpoint2 => [ list ],
        },
        jsonrpc => {
            $endpoint1 => [ list ],
            $endpoint2 => [ list ],
        },
    }

In case of specified $protocol:

    {
        $endpoint1 => [ list ],
        $endpoint2 => [ list ],
    }

(c) MMXVI - 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.