![]() |
![]()
| ![]() |
![]()
NAMEJSON::RPC::Common::Procedure::Return - JSON-RPC procedure return class VERSIONversion 0.11 SYNOPSISuse JSON::RPC::Common::Procedure::Return; # create a return from a call, retaining the ID my $return = $call->return_result("foo"); # inflate gets a version specific class my $return = JSON::RPC::Common::Procedure::Return->inflate( version => "2.0", result => "foo", id => $id, ); # you can specify a return with an error, it's just an attribute my $return = JSON::RPC::Common::Procedure::Return->new( error => ..., ); DESCRIPTIONThis class abstracts JSON-RPC procedure returns (results). Version specific implementation are provided as well. ATTRIBUTES
METHODS
AUTHORYuval Kogman <nothingmuch@woobling.org> COPYRIGHT AND LICENSEThis software is copyright (c) 2014 by Yuval Kogman and others. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
|