okhttp / okhttp3 / HttpUrl / queryParameterValue

queryParameterValue

fun queryParameterValue(index: Int): String?

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