port¶
[jvm]\
@get:JvmName(name = "port")
The explicitly-specified port if one was provided, or the default port for this URL’s scheme. For example, this returns 8443 for https://square.com:8443/
and 443 for https://square.com/
. The result is in [1..65535]
.
URL | port() |
---|---|
http://host/ |
80 |
http://host:8000/ |
8000 |
https://host/ |
443 |