Example #1
0
 /**
  * Process the status line.
  *
  * @param RequestInterface $request
  */
 private function processStatusLine(RequestInterface $request)
 {
     $code = $this->code();
     $reason = 'Unknown';
     if (array_key_exists($code, self::STATUS_CODES)) {
         $reason = self::STATUS_CODES[$code];
     }
     header(sprintf('HTTP/%s %s %s', $request->version(), $code, $reason));
 }