Web::URL::Scheme
URL scheme properties
SYNOPSIS
use Web::URL::Scheme;
warn get_default_port 'http'; # 80
DESCRIPTION
The Web::URL::Scheme
module provides access to properties of URL schemes.
FUNCTION
There is the following function, exported by default:
$port = get_default_port $scheme
-
Return the default port
<https://url.spec.whatwg.org/#default-port>
for the scheme. The argument must be a canonicalized (lowercase) URL scheme name, without:
delimiter. If no default port is defined for the scheme,undef
is returned.
SPECIFICATION
URL Standard <https://url.spec.whatwg.org/>
.
AUTHOR
Wakaba <wakaba@suikawiki.org>.
LICENSE
Copyright 2011-2016 Wakaba <wakaba@suikawiki.org>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.