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

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'

See Also