getValue

inline operator fun <R : Any> <ERROR CLASS>.getValue(thisRef: Any?, property: KProperty<*>): R

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
    // ...
}

Throws