NET-A-PORTER / scala-uri

Simple scala library for building and parsing URIs
Other
261 stars 33 forks source link

Is scala-uri RFC 3986 compliant? #81

Closed wsargent closed 9 years ago

wsargent commented 9 years ago

I didn't see a mailing list link, so apologies if this is an obvious question: does scala-uri parse URIs in an RFC-3986 compliant fashion, so that parsing a URL is different for each part of the URL and properly handles the different reserved characters?

I know that https://github.com/palominolabs/url-builder is an option, but I'd rather use scala-uri because the DSL is so much nicer.

Also blog posts:

http://blog.lunatech.com/2009/02/03/what-every-web-developer-must-know-about-url-encoding http://blog.palominolabs.com/2013/10/03/creating-urls-correctly-and-safely/

philwill-nap commented 9 years ago

If you find that it isn't, we consider that a defect.

wsargent commented 9 years ago

On a similar note, does scala-uri support URL normalization? https://en.wikipedia.org/wiki/URL_normalization and https://stackoverflow.com/questions/2993649/how-to-normalize-a-url-in-java

philwill-nap commented 9 years ago

No; this belongs in a layer above, at least until everyone agrees what that means and preferably until it is a formal part of the URI specification.