Skip to content

okhttp / okhttp3 / HttpUrl / encodedQuery

encodedQuery

val encodedQuery:String?

The query of this URL, encoded for use in HTTP resource resolution. This string may be null (for URLs with no query), empty (for URLs with an empty query) or non-empty (all other URLs).

URL encodedQuery()
http://host/ null
http://host/? ""
http://host/?a=apple&k=key+lime "a=apple&k=key+lime"
http://host/?a=apple&a=apricot "a=apple&a=apricot"
http://host/?a=apple&b "a=apple&b"