public Path tail(int count) {
            requireInRange(count, "tail count", 0, length);
            return count == length ? this : new Path(head, count, trailingSlash, validator);
        }
Returns a copy of this where only the last segments are retained.
vespajlib/src/main/java/ai/vespa/http/HttpURL.java