MooseX::Types::URI - URI related types and coercions for Moose |
MooseX::Types::URI - URI related types and coercions for Moose
version 0.07
use MooseX::Types::URI qw(Uri FileUri DataUri);
This package provides Moose types for fun with URIs.
Uri
Either URI or the URI::WithBase manpage
Coerces from Str
via URI/new.
Coerces from the Path::Class::File manpage and the Path::Class::Dir manpage via new in the URI::file manpage.
Coerces from ScalarRef
via new in the URI::data manpage.
Coerces from HashRef
using the URI::FromHash manpage.
DataUri
A URI whose scheme is data
.
Coerces from Str
and ScalarRef
via new in the URI::data manpage.
FileUri
A the URI::file manpage class type.
Has coercions from Str
, the Path::Class::File manpage and the Path::Class::Dir manpage via new in the URI::file manpage
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. the URI::WithBase manpage does not inherit URI).
The types are with ucfirst
naming convention so that they don't mask the
URI class.
Think about the Path::Resource manpage integration of some sort
יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.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.
MooseX::Types::URI - URI related types and coercions for Moose |