presto-main/src/main/java/io/prestosql/dispatcher/LocalCoordinatorLocation.java/LocalCoordinatorLocation/getUri
class LocalCoordinatorLocation:    @Override
    public URI getUri(UriInfo uriInfo, String xForwardedProto)
    {
        String scheme = isNullOrEmpty(xForwardedProto) ? uriInfo.getRequestUri().getScheme() : xForwardedProto;
        return uriInfo.getRequestUriBuilder()
                .scheme(scheme)
                .replacePath("")
                .replaceQuery("")
                .build();
    }