4 ms·
do any server-side environments currently present an array/array-like structure from request parameters with duplicate names (and specifically without any kind
by stephenr 12y ago
do any server-side environments currently present an array/array-like structure from request parameters with duplicate names (and specifically without any kind of array indicator, like name[] in php requests for example)?
- tomchristie 12y agoSure, yes. In Python land for example Django and Flask both present the request parameters in a dictionary-like data structure that supports lookup of the complete list of values passed for a given name. Regular lookups will give you just a single value, but they also present an interface to get the complete list.
- griffindy 12y agojersey[0], the reference implementation of JAX-RS[1] does this if you specify an incoming query string parameter as a `List` [0] https://jersey.java.net/ https://jersey.java.net/ [1] https://jax-rs-spec.java.net/ https://jax-rs-spec.java.net/