KtorExtension

class KtorExtension(scope: InjectionScope, enableFundefs: Boolean = false) : DeclarationsProcessor

The Ktor extension object that is injected into the meta-environment. Keeps track of implementations of KtorModule subclasses (incl. KtorController subclasses) within the main environment.

Constructors

Link copied to clipboard
constructor(scope: InjectionScope, enableFundefs: Boolean = false)

Functions

Link copied to clipboard

Returns all available modules, including modules for any app.

Link copied to clipboard

Returns modules available in the environment for the given application name.

Link copied to clipboard
open override fun processDeclarations(sequence: Sequence<Declaration<*>>)