Example #1
0
 /**
  * @param	HttpResponseInterface $response
  * @return	null
  */
 public function render(HttpResponseInterface $response)
 {
     if (headers_sent()) {
         return;
     }
     header($response->getStatusLine());
     $headerList = $response->getHeaderList();
     $replaceSimilar = false;
     foreach ($headerList as $header) {
         header($header, $replaceSimilar);
     }
     echo $response->getContent();
 }
 /**
  * @return string
  */
 public function getPaginationLinks()
 {
     return $this->httpResponse->getHeader('Link');
 }