endpoint filter

Code that wraps selected minimal API handlers to run checks, such as validation or timing, before or after the handler.

In more detail

A filter receives the handler's arguments and can reject the request or change the result. Keep filters focused; behaviour for the whole application still belongs in middleware.

Related terms

Taught in

References