logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Description

       See docs in JSON::RPC for details

perl v5.40.0                                       2024-09-25                           JSON::RPC::Dispatch(3pm)

Name

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

Synopsis

           use JSON::RPC::Dispatch;

           my $router = Router::Simple->new; # or use Router::Simple::Declare
           $router->connect( method_name => {
               handler => $class_name_or_instance,
               action  => $method_name_to_invoke
           );

           my $dispatch = JSON::RPC::Dispatch->new(
               router => $router
           );

           sub psgi_app {
               $dispatch->handle_psgi( $env );
           }

See Also