Skip to content

ResponseSendingEvent

Emitted by Context::handle() once the pipeline has produced a response, just before it is returned to the runtime for emission.

The last hook that sees the full request + response together.

final class ResponseSendingEvent extends Event

ExtendsEvent
SourceEvent/Lifecycle/ResponseSendingEvent.php
PropertyTypeDescription
$requestServerRequestInterfacereadonly.
$responseResponseInterfacereadonly.

public function __construct(ServerRequestInterface $request, ResponseInterface $response): mixed

ParameterTypeDescription
$requestServerRequestInterface
$responseResponseInterface

Returns mixed