/**
  * Writes data to the client. If the method returns true, the connection should be
  * closed.
  *
  * @access public
  * @param  HTTPResponse $chunk
  * @return boolean
  */
 public function write(HTTPResponse $chunk)
 {
     $this->connection->write(chr(0) . $chunk->get_body() . chr(255));
     return $chunk->get_status() != 200;
 }