1JSON::RPC::Common::ProcUesdeurreC:o:nCtarlilb(u3t)ed PerJlSODNo:c:uRmPeCn:t:aCtoimomnon::Procedure::Call(3)
2
3
4

NAME

6       JSON::RPC::Common::Procedure::Call - JSON RPC Procedure Call base
7       class.
8

VERSION

10       version 0.11
11

SYNOPSIS

13               use JSON::RPC::Common::Procedure::Call;
14
15               my $req = JSON::RPC::Common::Procedure::Call->inflate({ ... });
16
17               warn "HALLO JSONRPC VERSION " . $req->version;
18

DESCRIPTION

20       A JSON-RPC Procedure Call (ed: *rolls eys*, what was wrong with
21       "request"?) is either a notification or a method invocation in JSON-
22       PRC.
23
24       See <http://json-rpc.org/wiki/specification> for more details.
25

ATTRIBUTES

27       All attributes are read only unless otherwise specified.
28
29       version
30       id  The request ID.
31
32           Used to correlate a request to a response.
33
34       method
35           The name of the method to invoke.
36
37       params
38           Returns a reference to the parameters hash or array.
39
40       return_class
41       error_class
42           The classes to instantiate the response objects.
43
44           These vary per subclass.
45

METHODS

47       inflate
48           A factory constructor. Delegates to "new" on a subclass based on
49           the protocol version.
50
51           This is the recommended constructor.
52
53       deflate
54           Flatten to JSON data
55
56       new The actual constructor.
57
58           Not intended for normal use on this class, you should use a
59           subclass most of the time.
60
61           Calling "JSON::RPC::Common::Procedure::Call->new" will construct a
62           call with an undefined version, which cannot be deflated (and thus
63           sent over the wire). This is still useful for testing your own
64           code's RPC hanlding, so this is not allowed.
65
66       params_list
67           Dereferences "params" regardless of representation.
68
69           Returns a list of positionals or a key/value list.
70
71       return_result $result
72       return_error %error_params
73           Create a new JSON::RPC::Common::Procedure::Return with or without
74           an error.
75
76       is_notification
77           Whether this request is a notification (a method that does not need
78           a response).
79
80       is_service
81           Whether this request is a JSON-RPC 1.1 service method (e.g.
82           "system.describe").
83
84           This method is always false for 1.0 and 2.0.
85
86       call $obj
87           A convenience method to invoke the call on $obj and create a new
88           return with the return value.
89

AUTHOR

91       Yuval Kogman <nothingmuch@woobling.org>
92
94       This software is copyright (c) 2014 by Yuval Kogman and others.
95
96       This is free software; you can redistribute it and/or modify it under
97       the same terms as the Perl 5 programming language system itself.
98
99
100
101perl v5.32.0                      2020-07-J2S8ON::RPC::Common::Procedure::Call(3)
Impressum