MooseX::Types::LWP::UserAgent - MooseX::Types for LWP::UserAgent objects
use Moose; use Moose::Util::TypeConstraints; use MooseX::Types::LWP::UserAgent qw(UserAgent); has 'ua' => ( is => 'rw', isa => 'UserAgent', coerce => 1, );
Provides type constraints that match LWP::UserAgent objects. Also provides coercions for ArrayRef and HashRef that call LWP::UserAgent->new with the passed arguments.
Robert Norris <rob@eatenbyagrue.org>
<rob@eatenbyagrue.org>
Copyright 2010 Robert Norris, all rights reserved.
This module is free software; you can redistribute it and/or modify it under the terms of the Artistic License v2.0. See http://www.opensource.org/licenses/artistic-license-2.0.php for details.
To install MooseX::Types::LWP::UserAgent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::Types::LWP::UserAgent
CPAN shell
perl -MCPAN -e shell install MooseX::Types::LWP::UserAgent
For more information on module installation, please visit the detailed CPAN module installation guide.