public function getWriter() { return $this->response->getWriter(); }
private function finish(\blaze\netlet\http\HttpNetletRequest $request, \blaze\netlet\http\HttpNetletResponse $response) { try { $responseWriter = $response->getWriter(); if (!$responseWriter->isClosed()) { $responseWriter->close(); } } catch (Exception $e) { // Error of the NetletOutputStream var_dump('UNEXPECTED ERROR: ' . $e->getMessage()); } }