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

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'

See Also