exclude

fun exclude(predicate: (call: ApplicationCall) -> Boolean)

Exclude calls matching the predicate from being redirected to https by this feature. The predicate gets the call as the engine built it: on Ktor CIO, call.request.path() of an absolute-form request target (GET http://host/path) still holds the scheme and authority, unlike the path excludePrefix and excludeSuffix match.