okhttp / okhttp3 / HttpUrl / querySize

querySize

fun querySize(): Int

Returns the number of query parameters in this URL, like 2 for http://host/?a=apple&b=banana. If this URL has no query this returns 0. Otherwise it returns one more than the number of "&" separators in the query.