queryParameterName
Returns the name of the query parameter at index
. For example this returns "a"
for queryParameterName(0)
on http://host/?a=apple&b=banana
. This throws if index
is not less than the query size.
URL | queryParameterName(0) | queryParameterName(1) |
---|---|---|
http://host/ | exception | exception |
http://host/? | "" | exception |
http://host/?a=apple&k=key+lime | "a" | "k" |
http://host/?a=apple&a=apricot | "a" | "a" |
http://host/?a=apple&b | "a" | "b" |