public function send()
 {
     foreach ($this->response->headers() as $name => $value) {
         header("{$name}: {$value}", true, $this->response->getStatus());
     }
     echo $this->response->getBody();
 }
 /**
  * Called by the DebugBar when data needs to be collected
  *
  * @return array Collected data
  */
 function collect()
 {
     return array('content-type' => $this->response->header('Content-Type'), 'status_code' => $this->response->getStatus(), 'headers' => $this->getDataFormatter()->formatVar($this->response->headers->all()), 'cookies' => $this->getDataFormatter()->formatVar($this->response->cookies->all()));
 }