Middleware - CI/CD Glossary Definition
Middleware is pipeline code that runs around a request handler to manage cross-cutting concerns.
Middleware is code that runs in the request pipeline before or after the main handler, handling concerns like auth, logging, and CORS. CI tests verify middleware behavior such as rejecting unauthenticated requests.
Middleware chains handle auth, parsing, and logging so handlers stay focused. Tests assert that, for example, the auth middleware returns 401 when a token is missing.
Related guides
Route - CI/CD Glossary DefinitionRoute: A route is the rule that maps an incoming request path and method to the handler that serves it. Routi…
CORS - CI/CD Glossary DefinitionCORS: CORS (Cross-Origin Resource Sharing) is a browser mechanism that uses HTTP headers to let a server decl…
Status Code - CI/CD Glossary DefinitionStatus Code: A status code is the three-digit HTTP number in a response that signals the result: 2xx success,…