The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

VERSION

0.1

SYNOPSIS

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

METHODS

Only one extra method is supported:

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)

SEE ALSO

HTML::FormHandler
HTML::FormHandler::Field::Text
Regexp::Common::URI::http
URI

AUTHOR

 Roman F.
 romanf@cpan.org

COPYRIGHT

Copyright (c) 2011 Roman F.

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

The full text of the license can be found in the LICENSE file included with this module.