FreeBSD Manual Pages
AnyEvent::RPC(3) User Contributed Perl Documentation AnyEvent::RPC(3) NAME AnyEvent::RPC - Abstract framework for Asyncronous RPC clients SYNOPSIS use AnyEvent::RPC; my $rpc = AnyEvent::RPC->new( host => 'your.api.host', port => 8080, base => '/api/rest/', type => 'REST', # or type => '+AnyEvent::RPC::Enc::REST', ) $rpc->req( # will be called as GET http://your.api.host:8080/api/rest/method/path/args?query=param call => [ method => qw(path args)], query => { query => 'param' }, cb => sub { # ( response, code, error ) if (my $response = shift) { # } else { my ($code,$err) = @_; } }, ); AUTHOR Mons Anderson, "<mons@cpan.org>" COPYRIGHT & LICENSE Copyright 2009 Mons Anderson, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.32.0 2010-07-16 AnyEvent::RPC(3)
NAME | SYNOPSIS | AUTHOR | COPYRIGHT & LICENSE
Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=AnyEvent::RPC&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>