1MooseX::Types::URI(3) User Contributed Perl DocumentationMooseX::Types::URI(3)
2
3
4
6 MooseX::Types::URI - URI related types and coercions for Moose
7
9 use MooseX::Types::URI qw(Uri FileUri DataUri);
10
12 This package provides Moose types for fun with URIs.
13
14 It has slightly DWIMier types than the URI classes have due to
15 implementation details, so the types should be more forgiving when
16 ducktyping will work anyway (e.g. URI::WithBase does not inherit URI).
17
19 The types are with "ucfirst" naming convention so that they don't mask
20 the URI class.
21
22 Uri 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
42 via "new" in URI::file
43
45 Think about Path::Resource integration of some sort
46
48 http://github.com/nothingmuch/moosex-types-uri/
49 <http://github.com/nothingmuch/moosex-types-uri/>
50
52 Yuval Kogman <nothingmuch@woobling.org>
53
55 Copyright (c) 2008 Yuval Kogman. All rights reserved
56 This program is free software; you can redistribute
57 it and/or modify it under the same terms as Perl itself.
58
59
60
61perl v5.12.0 2009-05-27 MooseX::Types::URI(3)