src/Room11/HTTP/Response/Response.php
public function hasHeader($field)
    {
        $ucField = strtoupper($field);

        return isset($this->ucHeaders[$ucField]) || ($ucField === 'SET-COOKIE' && $this->cookies);
    }
public function hasHeader($field)
    {
        $ucField = strtoupper($field);

        return isset($this->ucHeaders[$ucField]) || ($ucField === 'SET-COOKIE' && $this->cookies);
    }
public function hasHeader ( $ field ) { $ ucField = strtoupper ( $ field ) ; return isset ( $ this -> ucHeaders [ $ ucField ] ) || ( $ ucField === 'SET-COOKIE' && $ this -> cookies ) ; }
Does the response currently have a value for the specified header field?

Header field names are NOT case-sensitive.

@param string $field
@return bool
Does the response currently have a value for the specified header field?