public function getHeader(string $name): ?string
    {
        $name = strtolower($name);
        foreach ($this->getAllHeaders() as $key => $value) {
            if (strtolower($key) === $name) {
                return $value;
            }
        }
        return null;
    }