The HttpMessage class
PHP 手册

HttpMessage::setHttpVersion

(PECL pecl_http >= 0.10.0)

HttpMessage::setHttpVersionSet HTTP version

说明

public bool HttpMessage::setHttpVersion ( string $version )

Set the HTTP Protocol version of the Message.

参数

version

the HTTP protocol version

返回值

Returns TRUE on success, or FALSE if supplied version is out of range (1.0/1.1).


The HttpMessage class
PHP 手册