local out = null
switch self.scheme (
case "rtr"
local tld = Net.web.tlds[self.domain_top]
if tld != null (
local fetchUrl = tld ++ (self.domain_sub != null ? self.domain_sub ++ "." "") ++ self.domain_name ++ "." ++ self.domain_top ++ "/"
if self.path != null (
fetchUrl ++= self.path ++ "/"
)
local fileName = self.file_name
out = "https://" ++ fetchUrl ++ fileName
)
break
case "local"
// (local urls have their path stored in the domain_name key
out = self.domain_name
break
)
return out