Version: v0.8.1 - Beta.  We welcome contributors & feedback.

Url.getPort

getPort() -> number

Description

Get the port part of the Url.

$siteUrl = url'http://mysite.com:8080/home'

$siteUrl.port()
//= 8080

See Also