lostisland / faraday

Simple, but flexible HTTP client library, with support for multiple backends.
https://lostisland.github.io/faraday
MIT License
5.73k stars 976 forks source link

Add indices when arrays are encoded #1399

Closed daedric closed 2 years ago

daedric commented 2 years ago

Description

Some services require indices to be given when an array is serialized. This pull request adds this feature.

For instance instead of passing, for an array a=[1,2]: a[]=1&a[]=2 we can now pass: a[0]=1&a[1]=2

Todos

List any remaining work that needs to be done, i.e:

Additional Notes

Optional section

daedric commented 2 years ago

:+1: thanks for the quick merge :)