1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00
Commit graph

2 commits

Author SHA1 Message Date
Andy Brody
bfc9fd6719 Remove unnecessary dup of input.
We're about to call .map on it anyway.
2016-01-26 23:13:51 -05:00
Andy Brody
7681a2c660 Introduce ParamsArray to support repeated params.
Because of RestClient's use of Hashes to represent structured HTTP
parameters, there was previously no way to pass a structured ruby object
that contained the same key multiple times.

ParamsArray behaves similarly to Array, but enforces a little more
validation. It is intended to be used in place of a Hash in methods to
process HTTP parameters where duplicate keys are desired.
2015-11-23 13:56:21 -08:00