Beispiel #1
0
 /**
  * Dispatch http head
  *
  * @return $this
  */
 public function dispatchHeaders()
 {
     $this->reactResponse->writeHead($this->statusCode->__toString(), iterator_to_array($this->headers));
     return $this;
 }
 /**
  * Constructor
  *
  * @param StatusCode $code
  * @param string     $message
  * @param Exception  $previous
  */
 public function __construct(StatusCode $code, $message = "", Exception $previous = null)
 {
     $this->statusCode = $code;
     parent::__construct($message, $code->__toString(), $previous);
 }