1MooseX::Types::URI(3pm)User Contributed Perl DocumentatioMnooseX::Types::URI(3pm)
2
3
4

NAME

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

VERSION

9       version 0.09
10

SYNOPSIS

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

DESCRIPTION

15       This package provides Moose types for fun with URIs.
16

TYPES

18       The types are with "ucfirst" naming convention so that they don't mask
19       the URI class.
20
21   "Uri"
22       Either URI or URI::WithBase
23
24       Coerces from "Str" via "new" in URI.
25
26       Coerces from Path::Class::File and Path::Class::Dir via "new" in
27       URI::file (but only if MooseX::Types::Path::Class is installed)
28
29       Coerces from "ScalarRef" via "new" in URI::data.
30
31       Coerces from "HashRef" using URI::FromHash.
32
33   "DataUri"
34       A URI whose scheme is "data".
35
36       Coerces from "Str" and "ScalarRef" via "new" in URI::data.
37
38   "FileUri"
39       A URI::file class type.
40
41       Has coercions from "Str" (and optionally Path::Class::File and
42       Path::Class::Dir) via "new" in URI::file
43
44       It has slightly DWIMier types than the URI classes have due to
45       implementation details, so the types should be more forgiving when
46       ducktyping will work anyway (e.g. URI::WithBase does not inherit URI).
47

TODO

49       Think about Path::Resource integration of some sort
50

SUPPORT

52       Bugs may be submitted through the RT bug tracker
53       <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Types-URI>
54       (or bug-MooseX-Types-URI@rt.cpan.org <mailto:bug-MooseX-Types-
55       URI@rt.cpan.org>).
56
57       There is also a mailing list available for users of this distribution,
58       at <http://lists.perl.org/list/moose.html>.
59
60       There is also an irc channel available for users of this distribution,
61       at "#moose" on "irc.perl.org" <irc://irc.perl.org/#moose>.
62

AUTHOR

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

CONTRIBUTORS

67       •   Karen Etheridge <ether@cpan.org>
68
69       •   Florian Ragwitz <rafl@debian.org>
70
71       •   Olivier Mengué <dolmen@cpan.org>
72
73       •   Daniel Pittman <daniel@rimspace.net>
74
75       •   MORIYA Masaki (gardejo) <moriya@ermitejo.com>
76
77       •   Shawn M Moore <sartak@gmail.com>
78
80       This software is copyright (c) 2008 by יובל קוג'מן (Yuval Kogman).
81
82       This is free software; you can redistribute it and/or modify it under
83       the same terms as the Perl 5 programming language system itself.
84
85
86
87perl v5.36.0                      2023-01-20           MooseX::Types::URI(3pm)
Impressum