okhttp / okhttp3 / HttpUrl / queryParameterName

queryParameterName

fun queryParameterName(index: Int): String

Returns the name of the query parameter at index. For example this returns "a" for queryParameterName(0) on http://host/?a=apple&b=banana. This throws if index is not less than the query size.