ktor-server-core / io.ktor.application / feature

feature

fun <A : Pipeline<*, ApplicationCall>, B : Any, F : Any> A.feature(feature: ApplicationFeature<A, B, F>): F

Gets feature instance for this pipeline, or fails with MissingApplicationFeatureException if the feature is not installed

Exceptions

MissingApplicationFeatureException -

Parameters

feature - application feature to lookup

Return
an instance of feature