MetaCPAN::Client::Role::HasUA(3pm) | User Contributed Perl Documentation | MetaCPAN::Client::Role::HasUA(3pm) |
MetaCPAN::Client::Role::HasUA - Role for supporting user-agent attribute
version 2.030000
my $mcpan = MetaCPAN::Client->new( ua => HTTP::Tiny->new(...) );
The user agent object for running requests.
It must provide an interface that matches HTTP::Tiny. Explicitly:
Method "post" must be available that accepts a request URL and a hashref of options.
Method "get" must be available that accepts a request URL.
Must return a result hashref which has key "success" and key "content".
Default: HTTP::Tiny,
my $mcpan = MetaCPAN::Client->new( ua_args => [ agent => 'MyAgent' ], );
Arguments sent to the user agent.
Default: user agent string: MetaCPAN::Client/$version.
This software is copyright (c) 2016 by Sawyer X.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
2022-09-29 | perl v5.34.0 |