public function getWriter()
 {
     return $this->response->getWriter();
 }
예제 #2
0
 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());
     }
 }