Skip Menu |

This queue is for tickets about the JSON-RPC CPAN distribution.

Report information
The Basics
Id: 36502
Status: new
Priority: 0/
Queue: JSON-RPC

People
Owner: Nobody in particular
Requestors: mkanat [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.96
Fixed in: (no value)



Subject: Would like a hook for pre-method code
It would be nice to be able to specify that a certain piece of code should be run before a webservice method is called. I'm making a JSON-RPC interface for Bugzilla, and it needs to check if the user is logged in before calling certain methods (but other methods are exempt from checking if the user is logged in). For now, I can override _argument_type_check (which is the last thing called before $procedure->{code}) but it would be nice to have some official way of doing this.