getBooleanQueryParameter

open fun getBooleanQueryParameter(key: String, defaultValue: Boolean): Boolean

Searches the query string for the first value with the given key and interprets it as a boolean value. "false" and "0" are interpreted as false, everything else is interpreted as true.

Return

the boolean interpretation of the query parameter key

Parameters

key

which will be decoded

defaultValue

the default value to return if there is no query parameter for key