MooseX::Types::URI - URI related types and coercions for Moose



NAME

MooseX::Types::URI - URI related types and coercions for Moose


VERSION

version 0.07


SYNOPSIS

        use MooseX::Types::URI qw(Uri FileUri DataUri);


DESCRIPTION

This package provides Moose types for fun with URIs.


TYPES

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


TYPES

The types are with ucfirst naming convention so that they don't mask the URI class.


TODO

Think about the Path::Resource manpage integration of some sort


AUTHOR

יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org>


CONTRIBUTORS


COPYRIGHT AND LICENSE

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