class Falcon::Command::Virtual

def host_endpoint(hostname, path: "/", **options)

An endpoint suitable for connecting to the specified hostname.
def host_endpoint(hostname, path: "/", **options)
	endpoint = secure_endpoint(**options)
	
	url = URI.parse(@options[:bind_secure])
	url.hostname = hostname
	url.path = path
	
	return Async::HTTP::Endpoint.new(url, hostname: endpoint.hostname)
end