//okhttp/okhttp3/HttpUrl/queryParameterValues
queryParameterValues¶
[jvm]\ fun queryParameterValues(name: String): List<String?>
Returns all values for the query parameter name
ordered by their appearance in this URL. For example this returns ["banana"]
for queryParameterValue("b")
on http://host/?a=apple&b=banana
.
URL | queryParameterValues("a") |
queryParameterValues("b") |
---|---|---|
http://host/ |
[] |
[] |
http://host/? |
[] |
[] |
http://host/?a=apple&k=key+lime |
["apple"] |
[] |
http://host/?a=apple&a=apricot |
["apple", "apricot"] |
[] |
http://host/?a=apple&b |
["apple"] |
[null] |