yii\web\HeaderCollection::offsetUnset PHP Метод

offsetUnset() публичный Метод

This method is required by the SPL interface [[\ArrayAccess]]. It is implicitly called when you use something like unset($collection[$name]). This is equivalent to HeaderCollection::remove.
public offsetUnset ( string $name )
$name string the header name
    public function offsetUnset($name)
    {
        $this->remove($name);
    }