Remove the header

@param string $name

@return $this
762354
public function removeHeader(string $name)
    {
        if (array_key_exists($name, $this->headers)) {
            unset($this->headers[$name]);
        }

        return $this;
    }
1307569
public function removeCookie($name)
	{
		$cookie = new SetCookieHeader($name, '');
		$cookie->setExpires(1337);
		
		$this->addHeader($cookie);
		
		return $this;
	}
153021
private function removeHeader($name, array &$options)
    {
        foreach (array_keys($options['_headers']) as $key) {
            if (!strcasecmp($key, $name)) {
                unset($options['_headers'][$key]);
                return;
            }
        }
    }
1111821
function remove($header)
    {
        $normalizer = new HeaderCaseNormalizer();
        $name = $normalizer->normalize($header);

        foreach ($this->_headers as $idx => $header) {
            if ($header->getName() == $name)
                unset($this->_headers[$idx]);
        }

        return $this;
    }
481924
public function removeProperty($name)
    {
        if($row = $this->getIterator()->current()) {
            $row->removeProperty($name);
        }

        return $this;
    }
293729
public function removeHeader($header)
	{
		if($header instanceof HttpHeaderInterface)
		{
			unset($this->headers[strtolower($header->getFieldName())]);
		}
		else
		{
			unset($this->headers[strtolower($header)]);
		}
		
		return $this;
	}
1188060
public function removeSession($name)
    {
        if ($this->builderMustExist($name)->hasSession($name)) {
            unset($this->sessions[$name]);
        }

        return $this;
    }
167934
public function removeColumn($name)
    {

        if (isset($this->columns[$name])){
            unset($this->columns[$name]);
        }

        return $this;
    }
1013701
public function removeHeader($name)
    {
        if (!$this->hasHeader($name)) {
            throw new \InvalidArgumentException(sprintf('The request header "%s" does not exist.', $name));
        }

        unset($this->headers[$name]);
    }
1205020
public function withoutHeader($name)
    {
        $headers = $this->initHeaders();
        
        if (!$headers->hasHeader($name)) {
            return $this;
        }
        
        $clone = $this->copy();
        $clone->headers = $headers->withoutHeader($name);

        return $clone;
    }
856276
public function removeData($name)
    {
        if (is_array($this->data)) {
            unset($this->data[$name]);
        } else {
            $this->data->$name = null;
        }

        return $this;
    }
1151088
public function delete(string $name): self
    {
        if (isset($this->data[$name])) {
            unset($this->data[$name]);
        }
        return $this;
    }
1190013
protected function removeHeader($name)
	{
		if (! $this->hasHeader($name))
		{
			return false;
		}	

		$value = $this->getHeader($name);

		unset($this->headers[$name]);

		return $value;
	}
930718
public function removeInterface(string $name)
    {
        foreach ($this->interfaces as $index => $interface) {
            if ($interface === $name) {
                unset($this->interfaces[$index]);
                break;
            }
        }

        return $this;
    }
1361771
public function setHeader($name, $value)
    {
        $name = trim($name);
        $this->headers[$name] = trim($value);

        return $this;
    }
1069979
public function removeAttribute($name)
    {
        foreach ($this as $node) {
            if ($node instanceof \DOMElement) {
                /** @var \DOMElement $node */
                if ($node->hasAttribute($name)) {
                    $node->removeAttribute($name);
                }
            }
        }
        return $this;
    }
449201
public final function removeHeader(string $name, bool $defer = true): self
    {
        if ($this->type == self::TYPE_REQUEST) {
            throw new HttpException('You cannot modify request headers');
        }

        unset($this->headers[$name]);
        if (!$defer) { // remove instantly
            header_remove($name);
        }

        return $this;
    }