Michael Waitt
07/25/2022, 6:17 PMcreateApplicationPlugin
API. More info in 🧵.Michael Waitt
07/25/2022, 6:18 PMApplicationCallPipeline.Setup
.
pipeline.intercept(customContextPhase) {
val context = genContext(call)
if (context != null) {
withContext(context) {
proceed()
}
} else {
proceed()
}
}
Michael Waitt
07/25/2022, 6:18 PMwithContext()
and proceed()
are both not directly available to us in createApplicationPlugin
's scope, do you have any recommendations on a way to achieve this same functionality? Or should we just stick with a pipeline interceptor in this case?Michael Waitt
07/25/2022, 6:18 PMHook
that basically does what this interceptor does. But this didn't feel quite right, as the hook ends up doing the plugin's heavy lifting.Aleksei Tirman [JB]
07/26/2022, 7:45 AM