logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

MetaCPAN::Client::Role::HasUA - Role for supporting user-agent attribute

Attributes

ua
           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:

       •   Implement post()

           Method "post" must be available that accepts a request URL and a hashref of options.

       •   Implement get()

           Method "get" must be available that accepts a request URL.

       •   Return result hashref

           Must return a result hashref which has key "success" and key "content".

       Default: HTTP::Tiny,

   ua_args
           my $mcpan = MetaCPAN::Client->new(
               ua_args => [ agent => 'MyAgent' ],
           );

       Arguments sent to the user agent.

       Default: user agent string: MetaCPAN::Client/$version.

Authors

       •   Sawyer X <xsawyerx@cpan.org>

       •   Mickey Nasriachi <mickey@cpan.org>

Name

       MetaCPAN::Client::Role::HasUA - Role for supporting user-agent attribute

Version

       version 2.033000

See Also