//okhttp/okhttp3/HttpUrl/querySize
querySize¶
[jvm]\
@get:JvmName(name = "querySize")
The number of query parameters in this URL, like 2 for http://host/?a=apple&b=banana
. If this URL has no query this is 0. Otherwise it is one more than the number of "&"
separators in the query.
URL | querySize() |
---|---|
http://host/ |
0 |
http://host/? |
1 |
http://host/?a=apple&k=key+lime |
2 |
http://host/?a=apple&a=apricot |
2 |
http://host/?a=apple&b |
2 |