middleware pipeline

The ordered chain of middleware every HTTP request passes through on the way in, and in reverse on the way out.

In more detail

Outer middleware sees failures and responses from inner code, which is why the exception handler goes first. Map endpoints after the cross-cutting middleware they depend on.

Related terms

Taught in

References