ktor-server-test-host / io.ktor.server.testing / TestApplicationEngine / callInterceptor

callInterceptor

var callInterceptor: <ERROR CLASS><Unit, ApplicationCall>

interceptor for engine calls. can be modified to emulate certain engine behaviour (e.g. error handling)