//okhttp/okhttp3/HttpUrl/queryParameterNames
queryParameterNames¶
[jvm]\
@get:JvmName(name = "queryParameterNames")
val queryParameterNames: Set<String>
The distinct query parameter names in this URL, like ["a", "b"]
for http://host/?a=apple&b=banana
. If this URL has no query this is the empty set.
URL | queryParameterNames() |
---|---|
http://host/ |
[] |
http://host/? |
[""] |
http://host/?a=apple&k=key+lime |
["a", "k"] |
http://host/?a=apple&a=apricot |
["a"] |
http://host/?a=apple&b |
["a", "b"] |