Skip to content

Instantly share code, notes, and snippets.

@piuccio piuccio/Controller.scala
Last active Oct 12, 2015

What would you like to do?
Handle query strings in scala
val queryString = {request.queryString.filter(_._2.exists(_.nonEmpty)).map { p =>
"%s=%s".format(p._1, p._2.head.urlEncoded)
} ++ List(s"api-key=$key")}.mkString("&")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.