XML::RPC::UA(3pm)
π XML::RPC::UA π
okay so bestie, welcome to XML::RPC::UA β the base class for XML::RPC UserAgent. It's giving "blueprint energy" β¨ β it's the vibe template that all the actual useragent classes inherit from, and it ships from the User Contributed Perl Documentation pile, page XML::RPC::UA(3pm). π
π SYNOPSIS π
Generic usage, no cap:
use XML::RPC::Fast;
my $client = XML::RPC::Fast->new(
$uri,
ua => XML::RPC::UA::LWP->new(
timeout => 10,
ua => 'YourApp/0.01', # default User-Agent http-header
),
);
like literally just hand your $client a ua object and it knows what to do π«Ά
β¨ METHODS β¨
The following methods should be implemented β yes, you, subclass, this is your moment, main character behavior only π
async ()β should return true if the useragent is asynchronous, and false otherwise. That's it. That's the whole job. βcall ( $method, $uri, body => $body, headers => { http-headers }, cb => $cb->( $response ) );β should process an HTTP-request to$uri, using$method, passing$headersand$body, receive the response, and invoke$cbwith anHTTP::Responseobject. πΈ
heads up bestie: these are the methods you're supposed to implement in your own UA class β this base class is just the contract, iykyk π§
π COPYRIGHT & LICENSE π
Copyright (c) 2008-2009 Mons Anderson. π
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. slay, open source, we love to see it π
π¦ AUTHOR π¦
Mons Anderson, "<mons@cpan.org>" β iconic, thank you for your service π«‘π
and that's the whole page, bestie!! this one came from perl v5.34.0, dated 2022-06-28, and it's filed under XML::RPC::UA(3pm). go forth and implement those two methods, periodt. π
β¨π
π¦ 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