Example #1
0
 public function onSend(Request $request)
 {
     if (!$request->isPermanenceConnection()) {
         $this->bind->getData('client')->declareClose();
     } else {
         $this->bind->getData('client')->setKeepAlive(true);
         $this->bind->getData('client')->getWriteBuffer()->flush();
     }
     $end = $this->bind->getEnd();
     if (!$end || !is_object($end) || !$end instanceof Response) {
         throw new InternalServerErrorException("pipeline end data is not a Aurora\\Http\\Response class object");
     }
 }