Beispiel #1
0
 public function send(Response $response)
 {
     if ($response->isWritable()) {
         $response->writeHead(200, ['Content-type' => $this->content_type]);
         $this->stream->pipe($response);
     }
 }
 /**
  * is the response writable ?
  *
  * @return boolean
  */
 public function isWritable()
 {
     return $this->httpResponse->isWritable();
 }