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

Url.getHost

getHost() -> string

Description

Get the host part of the Url.

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

$siteUrl.getHost()
//= 'mysite.com'

See Also