next delegate

The delegate a middleware calls to pass the request to the rest of the pipeline, and whose completion signals the response is on its way back.

In more detail

Every middleware added with app.Use receives one. Work before await next() happens on the way in, work after it on the way out; not calling it short-circuits the request.

Related terms

Taught in

References