Marc Knaup
03/13/2020, 10:50 AMcy
03/13/2020, 10:53 AMMarc Knaup
03/13/2020, 10:56 AMRoute.() -> Unit
lambda.
I could use my own interface for defining handlers that take MyRoute.() -> Unit
instead.
MyRoute
has contextual properties and special contextual DSL.Application
and PipelineContext
(handlers).
I get some local state from the respective attributes
and make it available through a nice DSL.cy
03/13/2020, 10:57 AMMarc Knaup
03/13/2020, 10:59 AMApplication
for example because plenty of 1st and 3rd party modules add extension functions to it.
So I cannot use my own implementation and simply funnel everything to the Application
behind the scenes.
I would have to replicate all extension functions of all possible Ktor features/libraries.