yii\web\HeaderCollection::fromArray PHP Method

fromArray() public method

Populates the header collection from an array.
Since: 2.0.3
public fromArray ( array $array )
$array array the headers to populate from
    public function fromArray(array $array)
    {
        $this->_headers = $array;
    }