It would be nice if the requests could support an array as the value for a parameter, or support a sequence of pairs, so that we could submit more than one value for the same key. Right now, the value of any parameter is (str v), so the only way to sent multiple values for the same key is by converting it to a form-url-encoded string first by hand.
It would be nice if the requests could support an array as the value for a parameter, or support a sequence of pairs, so that we could submit more than one value for the same key. Right now, the value of any parameter is (str v), so the only way to sent multiple values for the same key is by converting it to a form-url-encoded string first by hand.
For example:
(client/GET client "http://localhost" :query {:many ["valuea", "valueb", "valuec"]})
Should submit something like:
http://localhost?many=valuea&many=valueb&many=valuec
The clj-apache-http library supports this notation, as well as a sequence of pairs.