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.
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.