handle

abstract suspend fun handle(call: ApplicationCall, next: suspend () -> Unit)

The function to handle the HTTP request. It can modify the request, perform actions, or pass control to the next middleware/handler in the pipeline.

Parameters

call

The ApplicationCall representing the HTTP request.

next

The next function in the pipeline, called to continue the request processing.