Same here, use url.scheme(), url.host() and url.path()