okhttp / okhttp3 / HttpUrl / query

query

fun query(): String?

Returns this URL's query, like "abc" for http://host/?abc. Most callers should prefer queryParameterName and queryParameterValue because these methods offer direct access to individual query parameters.