yii\web\HeaderCollection::has PHP Method

has() public method

Returns a value indicating whether the named header exists.
public has ( string $name ) : boolean
$name string the name of the header
return boolean whether the named header exists
    public function has($name)
    {
        $name = strtolower($name);
        return isset($this->_headers[$name]);
    }