1MetaCPAN::Client::Role:U:sHearsUCAo(n3t)ributed Perl DocMuemteanCtPaAtNi:o:nClient::Role::HasUA(3)
2
3
4

NAME

6       MetaCPAN::Client::Role::HasUA - Role for supporting user-agent
7       attribute
8

VERSION

10       version 2.030000
11

ATTRIBUTES

13   ua
14           my $mcpan = MetaCPAN::Client->new( ua => HTTP::Tiny->new(...) );
15
16       The user agent object for running requests.
17
18       It must provide an interface that matches HTTP::Tiny. Explicitly:
19
20       •   Implement post()
21
22           Method "post" must be available that accepts a request URL and a
23           hashref of options.
24
25       •   Implement get()
26
27           Method "get" must be available that accepts a request URL.
28
29       •   Return result hashref
30
31           Must return a result hashref which has key "success" and key
32           "content".
33
34       Default: HTTP::Tiny,
35
36   ua_args
37           my $mcpan = MetaCPAN::Client->new(
38               ua_args => [ agent => 'MyAgent' ],
39           );
40
41       Arguments sent to the user agent.
42
43       Default: user agent string: MetaCPAN::Client/$version.
44

AUTHORS

46       •   Sawyer X <xsawyerx@cpan.org>
47
48       •   Mickey Nasriachi <mickey@cpan.org>
49
51       This software is copyright (c) 2016 by Sawyer X.
52
53       This is free software; you can redistribute it and/or modify it under
54       the same terms as the Perl 5 programming language system itself.
55
56
57
58perl v5.38.0                      2023-07-20  MetaCPAN::Client::Role::HasUA(3)
Impressum