Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Expand accepted method names #1
The JSON-RPC 2.0 spec says that any string is a valid method name, and I couldn't find any mention on their discussion list of an alphanumeric requirement on method names.
This patch will expand your dispatcher to accept registration on any method names, except empty string, non-string scalars, or any strings starting with 'rpc.' and on activation, accept any method names (in case you ever internally introduce "rpc." methods).
I've also included relevent test cases.
Thanks for this module, and thanks for your consideration. This is my first github/cpan pull request, I hope I'm not being improper :)
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
I'd like to use method names including a separating dot. E.g.: "thing.act"
This module performs great in the infrastructure i'm going to deploy! Thumbs up!