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

Marc Knaup

03/13/2020, 10:47 AM
It would be nice if Ktor could provide a
DslMarker
so that we can mix `Application`/`ApplicationCall`/`Route`/`PipelineInterceptor` etc. receivers with our own server setup DSL 🙂
c

cy

03/13/2020, 10:48 AM
We actually have dsl markers, at least for routing
m

Marc Knaup

03/13/2020, 10:49 AM
Oh right,
Route
has one already 🙂
c

cy

03/13/2020, 10:52 AM
pipeline interceptor doesn't have btw
m

Marc Knaup

03/13/2020, 10:52 AM
Yeah I confused it with
PipelineContext
Here i’m trying to mix own DSL with Ktor DSL and Kodein DSL 😵 I basically copied all Kodein extension functions to
Application
,
ApplicationCall
etc. manually to make them available in the right context. (And yes, that piece needs refactoring! WIP 😄)