apply Middlewares
suspend fun applyMiddlewares(call: ApplicationCall, iterator: Iterator<WebMiddleware>, path: String, final: suspend () -> Unit)
Applies middleware in a sequential manner and invokes the final handler.
Parameters
call
The application call.
iterator
The iterator over the middlewares.
path
The route path.
final
The final handler to invoke after applying all middlewares.