public static Path empty(Consumer<String> validator) {
            return new Path(null, 0, true, segmentValidator(validator));
        }
Creates a new, empty path, with a trailing slash, using the indicated validator for segments.
vespajlib/src/main/java/ai/vespa/http/HttpURL.java