scala> Uri("http://a.b.c/a").withQuery("a" -> "POST /api")
res2: spray.http.Uri = http://a.b.c/a?a=POST+/api
Shouldn't the slash in front of 'api' be encoded with `%2F`?
Example:
scala> java.net.URLEncoder.encode("POST /api", "UTF-8")
res6: String = POST+%2Fapi