Skip to content


Subversion checkout URL

You can clone with
Download ZIP
because if you need to put 'universal' in the name, it isn't...
Fetching latest commit...
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

The Mojolly/ RL library

This is a url utility library that parses URL's conforming to RFC-3986.


While the java platform gives a lot, many things aren't relevant or outdated. This library tries to update the understanding of a url or uri to a deeper level. We process a bunch of feeds that get added arbitrarily. We use this library to canonicalize and disambiguate between all the urls pointing to the same domain.


The library implements a uri parser defined by the ABNF grammar in RFC-3986. In addition to parsing a url, it also normalizes and canonicalizes public domains with the list found at: public suffix list. So how does this library improve on the current URL and URI implementations?

  • url encoding conforms to RFC-3986
  • normalizes urls along the following guidelines cfr. RFC-3986
  • canonicalizes urls by stripping common query string parameters and reordering the remaining querystrings in alphabetical order.

Running the tests

To run the tests with sbt-0.10 you have to increase the thread stack size (ie. -Xss4m).


Patches are gladly accepted from their original author. Along with any patches, please state that the patch is your original work and that you license the work to the rl project under the MIT License.


MIT licensed. check the LICENSE file


Make the parsers pluggable so that the scala parser combinator based one can be replaced as it's slow as.

## Thanks

to the following projects for leading the way:  

*  [ipv6-testcases](, [perl script](
*  [postrank-uri](  
*  [domainatrix](  
*  [google-guava](  
Something went wrong with that request. Please try again.