1Types::URI(3)         User Contributed Perl Documentation        Types::URI(3)
2
3
4

NAME

6       Types::URI - type constraints and coercions for URIs
7

SYNOPSIS

9          package FroobleDocument;
10
11          use Moose;
12          use Types::URI -all;
13
14          has source => (
15             is      => 'ro',
16             isa     => Uri,
17             coerce  => 1,
18          );
19

DESCRIPTION

21       Types::URI is a type constraint library suitable for use with Moo/Moose
22       attributes, Kavorka sub signatures, and so forth.
23
24   Types
25       This module provides some type constraints broadly compatible with
26       those provided by MooseX::Types::URI, plus a couple of extra type
27       constraints.
28
29       "Uri"
30           A class type for URI/URI::WithBase. Coercions from:
31
32           from "Uuid"
33               Coerces to a URI in the "urn:uuid:" schema. (See Types::UUID.)
34
35           from "Str"
36               Uses "new" in URI.
37
38           from "Path"
39               Uses "new" in URI::file. (See Types::Path::Tiny.)
40
41           from "ScalarRef"
42               Uses "new" in URI::data.
43
44           from "HashRef"
45               Coerces using URI::FromHash.
46
47           from "Iri"
48               Uses "new" in URI.
49
50           from RDF::Trine::Node::Resource, RDF::Trine::Namespace,
51           XML::Namespace
52               Uses "new" in URI.
53
54       "FileUri"
55           A subtype of "Uri" covering URI::file. Coercions from:
56
57           from "Str"
58               Uses "new" in URI::file.
59
60           from "Path"
61               Uses "new" in URI::file. (See Types::Path::Tiny.)
62
63           from "HashRef"
64               Coerces using URI::FromHash.
65
66           from "Iri"
67               Uses "new" in URI.
68
69           from RDF::Trine::Node::Resource, RDF::Trine::Namespace,
70           XML::Namespace
71               Uses "new" in URI.
72
73       "DataUri"
74           A subtype of "Uri" covering URI::data. Coercions from:
75
76           from "Str"
77               Uses "new" in URI::data.
78
79           from "ScalarRef"
80               Uses "new" in URI::data.
81
82           from "HashRef"
83               Coerces using URI::FromHash.
84
85           from "Iri"
86               Uses "new" in URI.
87
88           from RDF::Trine::Node::Resource, RDF::Trine::Namespace,
89           XML::Namespace
90               Uses "new" in URI.
91
92       "Iri"
93           A class type for IRI. Coercions as per "Uri" above, plus can coerce
94           from "Uri".
95

BUGS

97       Please report any bugs to
98       <http://rt.cpan.org/Dist/Display.html?Queue=Types-URI>.
99

SEE ALSO

101       MooseX::Types::URI, Type::Tiny::Manual, URI, URI::file, URI::data,
102       URI::FromHash, RDF::Trine::Node::Resource, IRI.
103
104       Types::UUID, Types::Path::Tiny, Types::Standard.
105

AUTHOR

107       Toby Inkster <tobyink@cpan.org>.
108
110       This software is copyright (c) 2014 by Toby Inkster.
111
112       This is free software; you can redistribute it and/or modify it under
113       the same terms as the Perl 5 programming language system itself.
114

DISCLAIMER OF WARRANTIES

116       THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
117       WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
118       MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
119
120
121
122perl v5.30.1                      2020-01-30                     Types::URI(3)
Impressum