abstract class Event

Base event for HTTP server request lifecycle observations.

The exception slot contains failures that escape the kernel or occur during transport lifecycle work. Application exceptions rendered by the kernel are reported through the exception handler and remain on a Hypervel response's exception property.

Methods

__construct(Request|null $request, Response|null $response, Throwable|null $exception = null, string $server = 'http')

No description

Throwable|null
getThrowable()

Get the transport or lifecycle exception, if any.

Details

at line 21
__construct(Request|null $request, Response|null $response, Throwable|null $exception = null, string $server = 'http')

No description

Parameters

Request|null $request
Response|null $response
Throwable|null $exception
string $server

at line 32
Throwable|null getThrowable()

Get the transport or lifecycle exception, if any.

Return Value

Throwable|null