Join Slack
Powered by
is there an application call pipeline stage that g...
# ktor
r
RandomBK
05/07/2019, 3:39 AM
is there an application call pipeline stage that gets executed at the end of a call?
b
bdawg.io
05/07/2019, 3:17 PM
https://github.com/ktorio/ktor/blob/master/ktor-server/ktor-server-core/jvm/src/io/ktor/application/ApplicationCallPipeline.kt#L30-L53
bdawg.io
05/07/2019, 3:19 PM
Based on those, there doesn’t appear to be, but you could probably make use of the send pipeline phases
https://github.com/ktorio/ktor/blob/master/ktor-server/ktor-server-core/jvm/src/io/ktor/response/ApplicationSendPipeline.kt#L20-L50
z
zpearce
05/07/2019, 3:20 PM
it looks like you can insert your own pipeline phase as well
zpearce
05/07/2019, 3:22 PM
Take a look at the CallLogging feature:
https://github.com/ktorio/ktor/blob/master/ktor-server/ktor-server-core/jvm/src/io/ktor/features/CallLogging.kt#L128
5
Views
Open in Slack
Previous
Next