MooseX::Types::URI(3pm)

MooseX::Types::URI3pm

Uri related types and coercions for moose

Usage

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

Version

version 0.10

Overview

This package provides Moose types for fun with URIs.

Types

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

"Uri"

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.

"DataUri"

A URI whose scheme is "data".

Coerces from "Str" and "ScalarRef" via "new" in URI::data.

"FileUri"

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

Todo

Think about Path::Resource integration of some sort

Support

Bugs may be submitted through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Types-URI> (or [email protected] <mailto:[email protected]>).

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" <irc://irc.perl.org/#moose>.

Contributors

•

Karen Etheridge <[email protected]>

•

Florian Ragwitz <[email protected]>

•

Olivier Mengué <[email protected]>

•

Daniel Pittman <[email protected]>

•

MORIYA Masaki (gardejo) <[email protected]>

•

Shawn M Moore <[email protected]>

Releases

6 releases since Debian 8 (Jessie); the text changed 3 times.

  1. 8
  2. 9–11
  3. 12
  4. 13

Author

יובל קוג'מן (Yuval Kogman) <[email protected]>

From libmoosex-types-uri-perl 0.10-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.