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::Request - Object used for making requests to MetaCPAN

Attributes

domain
           $mcpan = MetaCPAN::Client->new( domain => 'localhost' );

       What domain to use for all requests.

       Default: https://fastapi.metacpan.org.

   base_url
           my $mcpan = MetaCPAN::Client->new(
               base_url => 'https://localhost:9999/v2',
           );

       Instead of overriding the "base_url", you should override the "domain".  The "base_url" will be set
       appropriately automatically.

       Default: https://$domain.

   debug
       debug-mode for more detailed error messages.

Authors

       •   Sawyer X <xsawyerx@cpan.org>

       •   Mickey Nasriachi <mickey@cpan.org>

Methods

BUILDARGSfetch
           my $result = $mcpan->fetch('/release/Moose');

           # with parameters
           my $more = $mcpan->fetch(
               '/release/Moose',
               { param => 'value' },
           );

       Fetches a path from MetaCPAN (post or get), and returns the decoded result.

   ssearch
       Calls an Elasticsearch query and returns an MetaCPAN::Client::Scroll scroller object.

Name

       MetaCPAN::Client::Request - Object used for making requests to MetaCPAN

Version

       version 2.033000

See Also