1MetaCPAN::Client::RequeUsste(r3)Contributed Perl DocumenMteattaiCoPnAN::Client::Request(3)
2
3
4
6 MetaCPAN::Client::Request - Object used for making requests to MetaCPAN
7
9 version 2.026000
10
12 domain
13 $mcpan = MetaCPAN::Client->new( domain => 'localhost' );
14
15 What domain to use for all requests.
16
17 Default: https://fastapi.metacpan.org.
18
19 base_url
20 my $mcpan = MetaCPAN::Client->new(
21 base_url => 'https://localhost:9999/v2',
22 );
23
24 Instead of overriding the "base_url", you should override the "domain".
25 The "base_url" will be set appropriately automatically.
26
27 Default: https://$domain.
28
29 debug
30 debug-mode for more detailed error messages.
31
33 BUILDARGS
34 fetch
35 my $result = $mcpan->fetch('/release/Moose');
36
37 # with parameters
38 my $more = $mcpan->fetch(
39 '/release/Moose',
40 { param => 'value' },
41 );
42
43 Fetches a path from MetaCPAN (post or get), and returns the decoded
44 result.
45
46 ssearch
47 Calls an Elasticsearch query and returns an MetaCPAN::Client::Scroll
48 scroller object.
49
51 · Sawyer X <xsawyerx@cpan.org>
52
53 · Mickey Nasriachi <mickey@cpan.org>
54
56 This software is copyright (c) 2016 by Sawyer X.
57
58 This is free software; you can redistribute it and/or modify it under
59 the same terms as the Perl 5 programming language system itself.
60
61
62
63perl v5.30.0 2019-07-26 MetaCPAN::Client::Request(3)