public HttpURL withDomain(DomainName domain) {
        return create(scheme, domain, port, path, query);
    }
Returns a copy of this with the given domain.
vespajlib/src/main/java/ai/vespa/http/HttpURL.java