An open API service indexing awesome lists of open source software.

https://github.com/moltar/html-formhandlerx-field-uri-http


https://github.com/moltar/html-formhandlerx-field-uri-http

Last synced: 12 months ago
JSON representation

Awesome Lists containing this project

README

          

=pod

=head1 NAME

HTML::FormHandlerX::Field::URI::HTTP - an HTTP URI field

=head1 VERSION

version v0.4

=head1 SYNOPSIS

This field inherits from a Text field and is used to validate HTTP(S) URIs.
Validated values are inflated into an L object.

has_field 'url' => (
type => 'URI::HTTP',
scheme => qr/https?/i, ## default
inflate => 1, ## default
);

=head1 METHODS

=head2 scheme

This method is used to set the type of regex used for validating the URI. By
default both HTTP and HTTPS URIs are marked as valid. You can set this to only
validate HTTP or HTTPS if you wish:

scheme => qr/http/i, # only validate HTTP URIs
scheme => qr/https/i, # only validate HTTPS URIs
scheme => qr/https?/i, # validate both HTTP and HTTPS (default behaviour)

=head2 inflate

A boolean value that is checked whether or not the URL should be inflated into
the L object. Default is true.

=head1 SEE ALSO

=over 4

=item L

=item L

=item L

=item L

=back

=head1 AUTHOR

Roman F.

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Roman F..

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.