Phalcon\Http\Client\Header::has PHP Method

has() public method

Determine if a header exists with a specific key.
public has ( string $name ) : boolean
$name string Key to lookup.
return boolean
    public function has($name)
    {
        foreach ($this->getAll() as $key => $value) {
            if (0 === strcmp(strtolower($key), strtolower($name))) {
                return true;
            }
        }
        return false;
    }