Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 82585
Status: rejected
Priority: 0/
Queue: JSON-RPC2

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

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



Subject: cb argument of JSON::RPC2::execute
The API and the implementation of JSON::RPC2::Server would be simpler if execute() returned the JSON response (and let the caller handle it) instead of calling the handler (the cb argument) itself and returning void. -- Olivier Mengué - http://perlresume.org/DOLMEN
Le 2013-01-09 15:24:48, DOLMEN a écrit : Show quoted text
> The API and the implementation of JSON::RPC2::Server would be simpler if > execute() returned the JSON response (and let the caller handle it) > instead of calling the handler (the cb argument) itself and returning
void. But that would not work for non-blocking calls (register_nb)... -- Olivier Mengué - http://perlresume.org/DOLMEN