//okhttp/okhttp3/HttpUrl/queryParameter
queryParameter¶
[jvm]\ fun queryParameter(name: String): String?
The first query parameter named name
decoded using UTF-8, or null if there is no such query parameter.
URL | queryParameter("a") |
---|---|
http://host/ |
null |
http://host/? |
null |
http://host/?a=apple&k=key+lime |
"apple" |
http://host/?a=apple&a=apricot |
"apple" |
http://host/?a=apple&b |
"apple" |