XML::R...yEvent(3pm)
π NAME π
XML::RPC::UA::AnyEvent β it's the XML::RPC useragent, but make it AnyEvent::HTTP flavored. bestie. π¦
β¨ SYNOPSIS β¨
okay so here's the whole vibe, copy-paste ready, no cap:
use XML::RPC::Fast;
use XML::RPC::UA::AnyEvent;
my $rpc = XML::RPC::Fast->new(
$uri,
ua => XML::RPC::UA::AnyEvent->new(
ua => 'YourApp/0.1',
timeout => 3,
),
);
literally that's it. you pass your $uri, you hand it a ua built with XML::RPC::UA::AnyEvent->new(...), you give it a ua string of 'YourApp/0.1' and a timeout of 3, and you're off. slay. π
πΈ DESCRIPTION πΈ
so likeβ¦ this is an asyncronous useragent for XML::RPC::Fast. yes, asyncronous with the exact spelling from the docs, we don't fix what isn't broken. β¨
the way it works is it can be used in any AnyEvent application. any. all of them. it just fits in, main character energy, no drama. π
π IMPLEMENTED METHODS π
these are the methods it actually implements, and yes the list is short, it's giving minimal and unbothered:
π new
the constructor. makes you a fresh one. that's the whole job. π«Ά
π async = 1
it's async, so this is set to 1. it's not playing around, it's fr fr asynchronous. π₯
π call
the actual call happens here. do the RPC, get the result, iconic. β
π SEE ALSO π
the squad, the extended universe, the iykyk circle:
XML::RPC::UAβ the base class. it's also where all the documentation lives, so if you're confused bestie, go there. πXML::RPC::UA::AnyEventSyncβ the syncronous UA using AnyEvent. (again: syncronous, exactly as written, we keep every letter π)AnyEventβ described in the docs as the "DBI of event-loop programming". iconic comparison honestly. πAnyEvent::HTTPβ an HTTP-client using AnyEvent. it's the one doing the heavy lifting behind the scenes. π§
reminder bestie: every flag, name and value above is exactly as the original says it. no invented options, no guessing, no "probably works likeβ¦". we keep it π―.
this page is XML::RPC::UA::AnyEvent(3pm), part of the User Contributed Perl Documentation, shipped with perl v5.34.0 and dated 2022-06-28. mwah, go be async, drink water, and may your event loop never block. ππ¦β¨
π¦ where this page comes from
- debian bookworm: libxml-rpc-fast-perl 0.8-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libxml-rpc-fast-perl 0.8-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libxml-rpc-fast-perl 0.8-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libxml-rpc-fast-perl 0.8-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libxml-rpc-fast-perl 0.8-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms