MetaCPAN::Client::Request(3pm)

MetaCPAN::Client::Request3pm

Object used for making requests to metacpan

Version

version 2.033000

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.

Methods

Buildargs

fetch

    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.

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

Authors

•

Sawyer X <[email protected]>

•

Mickey Nasriachi <[email protected]>

From libmetacpan-client-perl 2.033000-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.