install

fun <P : Pipeline<*, ApplicationCall>, B : Any, F : Any> P.install(plugin: Plugin<P, B, F>, configure: B.() -> Unit = {}): F

Installs a plugin into this pipeline, if it is not yet installed.


fun <P : Route, B : Any, F : Any> P.install(plugin: BaseApplicationPlugin<P, B, F>, configure: B.() -> Unit = {}): F

Deprecated

Installing ApplicationPlugin into routing may lead to unexpected behaviour. Consider moving installation to the application level or migrate this plugin to `RouteScopedPlugin` to support installing into route.

Installs a plugin into this pipeline, if it is not yet installed.