okhttp / okhttp3 / HttpUrl / queryParameterNames

queryParameterNames

fun queryParameterNames(): Set<String>

Returns 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 returns the empty set.