1MooseX::Types::URI(3pm)User Contributed Perl DocumentatioMnooseX::Types::URI(3pm)
2
3
4
6 MooseX::Types::URI - URI related types and coercions for Moose
7
9 version 0.08
10
12 use MooseX::Types::URI qw(Uri FileUri DataUri);
13
15 This package provides Moose types for fun with URIs.
16
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.
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", Path::Class::File and Path::Class::Dir via
42 "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
49 Think about Path::Resource integration of some sort
50
52 XXXX XXX'XX (Yuval Kogman) <nothingmuch@woobling.org>
53
55 · Karen Etheridge <ether@cpan.org>
56
57 · Florian Ragwitz <rafl@debian.org>
58
59 · Olivier Mengue <dolmen@cpan.org>
60
61 · Daniel Pittman <daniel@rimspace.net>
62
63 · MORIYA Masaki (gardejo) <moriya@ermitejo.com>
64
65 · Shawn M Moore <sartak@gmail.com>
66
68 This software is copyright (c) 2008 by XXXX XXX'XX (Yuval Kogman).
69
70 This is free software; you can redistribute it and/or modify it under
71 the same terms as the Perl 5 programming language system itself.
72
73
74
75perl v5.30.0 2019-07-26 MooseX::Types::URI(3pm)