src/core/framework/core/WWW/HTTP/HttpMessage.php
public function setHttpVersion($version)
    {
        // Version validation pattern
        $pattern = '~^1\.[01]$~';

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

        $this->httpVersion = $version;
        return true;
    }
public function setHttpVersion($version)
    {
        // Version validation pattern
        $pattern = '~^1\.[01]$~';

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

        $this->httpVersion = $version;
        return true;
    }
public function setHttpVersion ( $ version ) { // Version validation pattern $ pattern = '~^1\.[01]$~' ; if ( ! preg_match ( $ pattern , $ version ) ) return false ; $ this -> httpVersion = $ version ; return true ; }
Set the HTTP Protocol version of the Message

@param string $version
@return bool  Returns TRUE on success, or FALSE if supplied version is out of range (1.0/1.1)
Set the HTTP Protocol version of the Message