The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

VERSION

Version 0.01

SYNOPSIS

  my $client = Beekeeper::Client->instance;
  
  my $req = $client->do_async_job(
      method => 'myapp.svc.foo',
      params => { foo => 'bar' },
  );
  
  $client->wait_all_jobs;

  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-\do_async_job> 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 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.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 92:

Non-ASCII character seen before =encoding in 'José'. Assuming UTF-8