Actually while checking a "wrong" URI against scala-uri I've seen that calling:
Uri.parse("[/").path
would yield in something like that:
res0: String = /%5B/
I actually would prefer that this will return a IllegalArgumentException or return a Option[Uri] since [/ is not a valid Uri.
Would also be okai to have a setting to say "more strict". Else we would need to check for valid paths by ourself.
Actually while checking a "wrong" URI against scala-uri I've seen that calling:
would yield in something like that:
I actually would prefer that this will return a
IllegalArgumentException
or return a Option[Uri] since [/ is not a valid Uri. Would also be okai to have a setting to say "more strict". Else we would need to check for valid paths by ourself.