MooseX::Types::URI - URI related types and coercions for Moose
use MooseX::Types::URI qw(Uri FileUri DataUri);
This package provides Moose types for fun with URIs.
The types are with ucfirst naming convention so that they don't mask the URI class.
Either URI or URI::WithBase
Coerces from Str via "new" in URI.
Coerces from Path::Class::File and Path::Class::Dir via "new" in URI::file (but only if MooseX::Types::Path::Class is installed)
Coerces from ScalarRef via "new" in URI::data.
Coerces from HashRef using URI::FromHash.
A URI whose scheme is data.
Coerces from Str and ScalarRef via "new" in URI::data.
A URI::file class type.
Has coercions from Str (and optionally Path::Class::File and Path::Class::Dir) via "new" in URI::file
It has slightly DWIMier types than the URI classes have due to implementation details, so the types should be more forgiving when ducktyping will work anyway (e.g. URI::WithBase does not inherit URI).
Think about Path::Resource integration of some sort
Bugs may be submitted through the RT bug tracker (or bug-MooseX-Types-URI@rt.cpan.org).
There is also a mailing list available for users of this distribution, at http://lists.perl.org/list/moose.html.
There is also an irc channel available for users of this distribution, at #moose on irc.perl.org.
יובל קוג'מן (Yuval Kogman) <firstname.lastname@example.org>
Karen Etheridge <email@example.com>
Florian Ragwitz <firstname.lastname@example.org>
Olivier Mengué <email@example.com>
Daniel Pittman <firstname.lastname@example.org>
MORIYA Masaki (gardejo) <email@example.com>
Shawn M Moore <firstname.lastname@example.org>
This software is copyright (c) 2008 by יובל קוג'מן (Yuval Kogman).
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install MooseX::Types::URI, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.