Closed fnc12 closed 7 years ago
I probably forgot to handle this case. I'll fix this very soon.
There is accually no standard ways of url-encoding arrays: https://tools.ietf.org/html/rfc3986#section-3.4 I suggest to start with this syntax:
Is this what you had in mind ?
Yes. Precisely: aParam[]=1&aParam[]=4&aParam[]=2&aParam[]=24
and covert it to std::vector<int>
. Honestly I expect to have it as a post parameter. But this is a correct syntax for url arrays too
I'm about to finish it. It will handle both the array[]
syntax (push_back) and the array[N]
(set the Nth element).
Nesting will work too (array of object, object of array, array of arrays, etc)
It is now in master and works well with the microhttpd backend: https://github.com/matt-42/silicon/commit/e70c4e19881cc591516eb358bb400cd950b2e339
I'd like to write a code like this:
but I receive a static_assert with
text