GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
MetaCPAN::Client::Role::HasUA(3) User Contributed Perl Documentation MetaCPAN::Client::Role::HasUA(3)

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

version 2.029000

    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:

  • Implement post()

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

  • Implement get()

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

  • Return result hashref

    Must return a result hashref which has key "success" and key "content".

Default: HTTP::Tiny,

    my $mcpan = MetaCPAN::Client->new(
        ua_args => [ agent => 'MyAgent' ],
    );

Arguments sent to the user agent.

Default: user agent string: MetaCPAN::Client/$version.

  • Sawyer X <xsawyerx@cpan.org>
  • Mickey Nasriachi <mickey@cpan.org>

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.

2020-12-20 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.