NAME

Beekeeper::JSONRPC::Request - Representation of a JSON-RPC request.

VERSION

Version 0.03

SYNOPSIS

my $client = Beekeeper::Client->instance;

my $req = $client->call_remote_async(
    method => 'myapp.svc.foo',
    params => { foo => 'bar' },
);

$client->wait_async_calls;

die unless ($req->success);

print $req->result;

DESCRIPTION

Objects of this class represents a JSON-RPC request (see http://www.jsonrpc.org/specification).

Method Beekeeper::Client-\call_remote_async> returns objects of this class.

ACCESSORS

method

A string with the name of the method to be invoked.

params

An arbitrary data structure to be passed as parameters to the defined method.

id

A value of any type, which is used to match responses with requests.

AUTHOR

José Micó, jose.mico@gmail.com

COPYRIGHT AND LICENSE

Copyright 2015-2021 José Micó.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language itself.

This software is distributed in the hope that it will be useful, but it is provided “as is” and without any express or implied warranties. For details, see the full text of the license in the file LICENSE.