Url.setPort
setPort($newPort) -> self
Description
Set the port
part of the Url.
$siteUrl = url'http://mysite.com/home' $siteUrl.setPort(8080) $siteUrl.renderString() //= 'http://mysite.com:8080/home'
Set the port
part of the Url.
$siteUrl = url'http://mysite.com/home' $siteUrl.setPort(8080) $siteUrl.renderString() //= 'http://mysite.com:8080/home'