Get header by name

@param string $name
@return string
421363
public function getHeader($name)
    {
        $name = mb_strtolower($name);
        return isset($this->headers[$name]) ? $this->headers[$name] : null;
    }
300880
public function getHeaderLines($name)
    {
        $name = strtolower($name);

        if (!isset($this->headers[$name])) {
            return array();
        }

        return $this->headers[$name][1];
    }
356506
public function getResponseHeader($name)
    {
        $headers = $this->driver->getResponseHeaders();

        $name = strtolower($name);
        $headers = array_change_key_case($headers, CASE_LOWER);

        if (!isset($headers[$name])) {
            return null;
        }

        return is_array($headers[$name]) ? $headers[$name][0] : $headers[$name];
    }
1369405
protected function getRequestHeader($Name)
    {
        $headers = self::getAllRequestHeaders();
        if (isset($headers[strtolower($Name)])) {
            return $headers[strtolower($Name)];
        }
        return false;
    }
763179
public function GetHeader ($name) {
		return isset($this->headers[$name]) 
			? $this->headers[$name] 
			: NULL;
	}
97054
public function get_header($name, $raw = false)
    {
        if (empty($this->headers)) {
            return null;
        }

        return $this->headers->get($name, !$raw);
    }
124185
public function getHeader($name)
    {
        $key = strtolower($name);

        if (isset($this->responseHeader[$key])) {
            if (!isset($this->responseHeader[$key]['name']) &&
                 is_array($this->responseHeader[$key])) {
                $values = array();

                foreach ($this->responseHeader[$key] as $header) {
                    $values[] = $header['value'];
                }

                return $values;
            } else {
                return $this->responseHeader[$key]['value'];
            }
        }

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

        return $this->headers[$name];
    }
272150
public function getAll($name)
    {
        $s = $this->getNormalizedHeaderName($name);
        $ret = [];
        if (!empty($this->headerMap[$s])) {
            foreach ($this->headerMap[$s] as $index) {
                $ret[] = $this->getByIndex($index);
            }
        }
        return $ret;
    }
852500
public function getOriginalHeader($name)
    {
        return array_key_exists($name, $this->_request)? $this->_request[$name]: null;
    }
640523
public function getHeader($name)
    {
        $headerSet = $this->getSwiftMessage()->getHeaders();
        if (!$headerSet->has($name)) {
            return [];
        }

        $headers = [];
        foreach ($headerSet->getAll($name) as $header) {
            $headers[] = $header->getValue();
        }
        return $headers;
    }
839281
private function getHeader($name, $headers)
    {
        $headers = array_change_key_case($headers);
        $name = strtolower($name);

        return isset($headers[$name]) ? (string) $headers[$name] : false;
    }
642488
public function getHeaders($name = null)
    {
        if (is_null($name)) {
            return $this->headers;
        } else {
            return $this->getHeader($name);
        }
    }
868429
public function getByName($name)
	{
		return isset($this->nameList[$name]) ? $this->nameList[$name] : null;
	}
1245674
public function withoutHeader($name)
    {
        $instance = clone $this;
        $instance->headers->remove($name, $value);
        return $instance;
    }
85263
public function getHeader($name)
    {
        $headerName = strtoupper(preg_replace("/[^a-zA-Z0-9_]/", '_', $name));
        return filter_input(INPUT_SERVER, 'HTTP_' . $headerName, FILTER_SANITIZE_SPECIAL_CHARS);
    }
1079459
public function hasHeader($name)
        {
            $name = $this->setHeaderName($name);
            return array_key_exists($name, $this->headers);
        }