/**
  * Processes a response.
  *
  * @param  \Herbert\Framework\Response $response
  * @return void
  */
 protected function processResponse(Response $response)
 {
     if ($response instanceof RedirectResponse) {
         $response->flash();
     }
     status_header($response->getStatusCode());
     foreach ($response->getHeaders() as $key => $value) {
         @header($key . ': ' . $value);
     }
     echo $response->getBody();
 }
 /**
  * @param       $jsonable
  * @param int   $status
  * @param array $headers
  */
 public function __construct($jsonable, $status = 200, $headers = null)
 {
     parent::__construct($jsonable, $status, $headers);
     $this->headers = array_merge($this->defaultHeaders, $this->headers);
 }