XML::R...yEvent(3pm)

πŸ“¦
version 0.8 Β· 2 versions
  • 0.8 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.8 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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