Interface: MiddlewareInterface
Full name: Azera\Core\MiddlewareInterface
Contract for all middleware classes in the Azera pipeline.
Implementations receive the application context and a callable representing
the remainder of the pipeline. They can short-circuit processing by returning
a Response directly, or continue by calling $next() and
optionally modifying its result.
Public methods
process() ·
public function process(Azera\AppContext $context, callable $next): Azera\Http\Response|null
Process the incoming request and optionally delegate to the next handler.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$context |
AppContext | - | Application context for the current request. |
$next |
callable | - | Callable that invokes the remaining pipeline. Returns ?Response. |
Return value
- Type: Response|
null - Description: Response to send, or null to continue (caller resumes the pipeline).