RequestID
Less than 1 minute
RequestID
Middleware that adds a request identifier to the response headers.
class RequestID implements \Hazaar\Middleware\Interface\MiddlewareImplements: Hazaar\Middleware\Interface\Middleware
Methods
handle
Adds the current request ID to the response as the X-Request-ID header.
public handle(Request $request, callable $next, mixed $args): ResponseReturns: Hazaar\Controller\Response
Parameters
| Parameter | Type | Description |
|---|---|---|
$request | Hazaar\Application\Request | |
$next | callable | |
$args | mixed |
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:17 +0000