public function hasHeader($header)
	{
		if($header instanceof HttpHeaderInterface)
		{
			return !empty($this->headers[strtolower($header->getFieldName())]);
		}
		
		return !empty($this->headers[strtolower($header)]);
	}
public function hasHeader($header)
	{
		if($header instanceof HttpHeaderInterface)
		{
			return !empty($this->headers[strtolower($header->getFieldName())]);
		}
		
		return !empty($this->headers[strtolower($header)]);
	}
public function hasHeader ( $ header ) { if ( $ header instanceof HttpHeaderInterface ) { return ! empty ( $ this -> headers [ strtolower ( $ header -> getFieldName ( ) ) ] ) ; } return ! empty ( $ this -> headers [ strtolower ( $ header ) ] ) ; }
Check if an HTTP header with the given name is set.

@param string $header
@return boolean
Check if an HTTP header with the given name is set .