use MooseX::Types::URI qw(Uri FileUri DataUri);
DESCRIPTIONThis package provides Moose types for fun with URIs.
TYPESThe types are with "ucfirst" naming convention so that they don't mask the URI class.
UriEither 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.
Coerces from "ScalarRef" via ``new'' in URI::data.
Coerces from "HashRef" using URI::FromHash.
DataUriA URI whose scheme is "data".
Coerces from "Str" and "ScalarRef" via ``new'' in URI::data.
FileUriA URI::file class type.
Has coercions from "Str", 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).
TODOThink about Path::Resource integration of some sort
AUTHORXXXX XXX'XX (Yuval Kogman) <[email protected]>
COPYRIGHT AND LICENSEThis software is copyright (c) 2008 by XXXX XXX'XX (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.