Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
MetaCPAN::Client::RoleUsersContributed Perl DoMetaCPAN::Client::Role::HasUA(3)

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

VERSION
       version 2.028000

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:

       o   Implement post()

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

       o   Implement get()

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

       o   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
       o   Sawyer X <xsawyerx@cpan.org>

       o   Mickey Nasriachi <mickey@cpan.org>

COPYRIGHT AND LICENSE
       This software is	copyright (c) 2016 by Sawyer X.

       This is free software; you can redistribute it and/or modify it under
       the same	terms as the Perl 5 programming	language system	itself.

perl v5.32.0			  2020-08-24  MetaCPAN::Client::Role::HasUA(3)

NAME | VERSION | ATTRIBUTES | AUTHORS | COPYRIGHT AND LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=MetaCPAN::Client::Role::HasUA&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help