getValue
inline operator fun <R : Any> <ERROR CLASS>.getValue(thisRef: Any?, property: KProperty<*>): R
Content copied to clipboard
Operator function that allows to delegate variables by call parameters. It does conversion to type R using DefaultConversionService
Example
get("/") {
val page: Int by call.request.queryParameters
val query: String by call.request.queryParameters
// ...
}
Content copied to clipboard
Throws
if no values associated with name
when conversion from String to R fails