Faraday should allow you to set array parameters using the following syntax:
Faraday.new(:url => 'http://localhost:1234').get do |request|
request.url('foo', 'bar' => ['baz', 'qux'])
end
Currently, doing this makes the following request:
I propose it should make this request instead, in keeping with Rack:
GET /foo?bar[]=baz&bar[]=qux
Currently, to get this result, you must construct your request like this, which is a bit ugly ugly:
Faraday.new(:url => 'http://localhost:1234').get do |request|
request.url('foo', 'bar[]' => ['baz', 'qux'])
# ^ eww, gross
end
Discuss.
Faraday should allow you to set array parameters using the following syntax:
Currently, doing this makes the following request:
I propose it should make this request instead, in keeping with Rack:
Currently, to get this result, you must construct your request like this, which is a bit ugly ugly:
Discuss.