FrameworkHealthFastPath
final class FrameworkHealthFastPath (View source)
Serves an eligible public framework health request before the full HTTP bootstrap runs.
Unsupported, unmatched or protected requests return null and continue through the standard lifecycle.
Methods
Captures the response that CORS middleware must decorate without dispatching a controller.
Returns a complete health response when the request is eligible, or null to defer normal dispatch.
Returns the captured health response unchanged to the surrounding middleware.
Details
__construct
__construct(ResponseInterface $response)
Captures the response that CORS middleware must decorate without dispatching a controller.
tryHandle
ResponseInterface|null
tryHandle(ServerRequestInterface $request)
Returns a complete health response when the request is eligible, or null to defer normal dispatch.
handle
ResponseInterface
handle(ServerRequestInterface $request)
Returns the captured health response unchanged to the surrounding middleware.