request = $request; } /** @return void */ public function initialize(Server $server) { $server->on('afterMethod:*', [$this, 'afterMethod']); } /** @return void */ public function afterMethod(RequestInterface $request, ResponseInterface $response) { $response->addHeader('X-Debug-Token', $this->request->getId()); } }