Skip to content
Corex

Middleware

Corex\Http\Middleware\Middleware · interface · Core layer

One unit of the request pipeline. It either returns a Response (short-circuit) or calls $next to pass control inward to the rest of the chain (spec FR-001).

process(Request $request, callable $next): Response

Section titled “process(Request $request, callable $next): Response”