|
|
@ -28,6 +28,21 @@ class Response extends \yii\base\Response |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public $ajaxRedirectCode = 278; |
|
|
|
public $ajaxRedirectCode = 278; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private $_headers; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Returns the header collection. |
|
|
|
|
|
|
|
* The header collection contains the currently registered HTTP headers. |
|
|
|
|
|
|
|
* @return HeaderCollection the header collection |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public function getHeaders() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if ($this->_headers === null) { |
|
|
|
|
|
|
|
$this->_headers = new HeaderCollection; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return $this->_headers; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Sends a file to user. |
|
|
|
* Sends a file to user. |
|
|
|
* @param string $fileName file name |
|
|
|
* @param string $fileName file name |
|
|
|