getValue

inline operator fun <R : Any> Parameters.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

if no values associated with name

when conversion from String to R fails