middleware
Middleware (noun) means Code that sits between a request arriving and the part of the application that finally answers it, doing shared jobs on the way through such as checking that the user is logged in, recording the request or rejecting bad input. Example: “Authentication is handled by middleware, so no individual page has to check it.”
How to use middleware
Learner’s notesIn plain EnglishCode that sits in the middle and handles jobs shared by everything passing through.
Technical; a mass noun in the broad sense (some middleware) but countable in web frameworks (a middleware, several middlewares).
In web frameworks, middleware runs in order, one after another, and any one of them can stop the request before it reaches the page.
Trace the full origin ↓Fill the gap
Can you complete this real example?
Authentication is handled by _____, so no individual page has to check it.
Etymology
A compound of middle and the -ware of software.