https://kotlinlang.org logo
#ktor
Title
# ktor
j

Jonathan Hollingsworth

08/22/2021, 10:36 PM
Within the docs we have
Copy code
get("/user/{login}") {
    if (call.parameters["login"] == "admin") {
        // ...
    }
}
But from looking at the definition
call
just seems an alias for
context
- what is the reason for the convention that has us using
call
over
context
in this situation? (Kotlin noob, so feel free just to point me at the docs and RTFM me)
a

Aleksei Tirman [JB]

08/23/2021, 8:57 AM
To make clear what the current pipeline's context is.