public function setHttpVersion($version)
    {
        // Version validation pattern
        $pattern = '~^1\.[01]$~';

        if (! preg_match($pattern, $version))
            return false;

        $this->httpVersion = $version;
        return true;
    }