yii\web\HeaderCollection::has PHP Méthode

has() public méthode

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