Url.setHost
setHost($newHost) -> self
Description
Set the host part of the Url.
$siteUrl = url'http://mysite.com/home'
$siteUrl.setHost('othersite.com')
$siteUrl.renderString()
//= 'http://othersite.com/home'
Set the host part of the Url.
$siteUrl = url'http://mysite.com/home'
$siteUrl.setHost('othersite.com')
$siteUrl.renderString()
//= 'http://othersite.com/home'