public static function fromHttpResponse(IHttpResponse $response) { $report = new self(); $report->content = $response->getContent(); return $report; }
/** * @param IHttpResponse $response */ public function shutdownWithResponse(IHttpResponse $response) { $this->shutdown(); $response->send(); exit; }
/** * @param IHttpResponse $httpResponse */ protected function cleanUpResponse(IHttpResponse $httpResponse) { // remove this header to be able to return response directly // to the browser without causing an error $httpResponse->getHeaders()->remove('transfer-encoding'); }