ktor-utils / io.ktor.util.pipeline / intercept

intercept

inline fun <reified TSubject : Any, TContext : Any> Pipeline<*, TContext>.intercept(phase: PipelinePhase, noinline block: suspend PipelineContext<TSubject, TContext>.(TSubject) -> Unit): Unit

Intercepts an untyped pipeline when the subject is of the given type