Example #1
0
 /**
  * Constructor
  * @param string                   $body   The HTTP response body
  * @param int                      $status The HTTP response status
  * @param \Yee\Http\Headers|array $headers The HTTP response headers
  */
 public function __construct($body = '', $status = 200, $headers = array())
 {
     $this->setStatus($status);
     $this->headers = new \Yee\Http\Headers(array('Content-Type' => 'text/html'));
     $this->headers->replace($headers);
     $this->cookies = new \Yee\Http\Cookies();
     $this->write($body);
 }