public function setLocale(\blaze\util\Locale $locale) { $this->response->setLocale($locale); }
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()); } }