Were there break changes from version 2 to 3 of kt...
# ktor
r
Were there break changes from version 2 to 3 of ktor? Before this worked in 2.*. Now in 3.x-beta it is not recognizing the
call
suspend inline fun <reified T : IModel> PipelineContext<*, ApplicationCall>.requests(): {
val principal = call.principal<JWTPrincipal>()
val receive = call.receive<T>()
.....
}
a
You can access the
ApplicationCall
object via the
context
property in Ktor 3.*.
r
I'm lost now. what would it be like?
a
Copy code
suspend fun PipelineContext<*, ApplicationCall>.requests() {
    val principal = context.principal<JWTPrincipal>()
    val receive = context.receive<T>()
}