1JSON::RPC::Dispatch(3)User Contributed Perl DocumentationJSON::RPC::Dispatch(3)
2
3
4

NAME

6       JSON::RPC::Dispatch - Dispatch JSON RPC Requests To Handlers
7

SYNOPSIS

9           use JSON::RPC::Dispatch;
10
11           my $router = Router::Simple->new; # or use Router::Simple::Declare
12           $router->connect( method_name => {
13               handler => $class_name_or_instance,
14               action  => $method_name_to_invoke
15           );
16
17           my $dispatch = JSON::RPC::Dispatch->new(
18               router => $router
19           );
20
21           sub psgi_app {
22               $dispatch->handle_psgi( $env );
23           }
24

DESCRIPTION

26       See docs in JSON::RPC for details
27
28
29
30perl v5.32.0                      2020-07-28            JSON::RPC::Dispatch(3)
Impressum