Marc Knaup
03/13/2020, 10:50 AMMarc Knaup
03/13/2020, 10:51 AMcy
03/13/2020, 10:53 AMcy
03/13/2020, 10:55 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.Marc Knaup
03/13/2020, 10:57 AMApplication
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 AMcy
03/13/2020, 10:57 AMcy
03/13/2020, 10:59 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.Marc Knaup
03/13/2020, 11:07 AM