Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

URL bintray

An immutable URL class with some useful methods to construct it, get the params, convert it to other types...

It's an alternative to, and many of the URLBuilder classes that are in projects like apache http.

The module contains also a Query class that it's useful if you just want to deal with the query string and its parameters.

How to use it

Note that the most common way of constructing a URL involves calling the apply method of the companion object. This method returns a Try as it can fail in case the url is malformed.


//construct it
val url = URL("")

//add a parameter"foo", "bar"))

//add a multi value parameter"foo", List("bar", "barr")))

//get the query

//get the url as a String

//get the url as a

//get the url as a

See the tests for more examples.

You can’t perform that action at this time.