private static UnaryOperator<String> segmentValidator(Consumer<String> validator) {
            requireNonNull(validator, "segment validator cannot be null");
            return value -> {
                requireNonNormalizable(value);
                validator.accept(value);
                return value;
            };
        }
Parses the given raw, normalized path string; this ignores whether the path is absolute or relative.
vespajlib/src/main/java/ai/vespa/http/HttpURL.java