1 # http\Message http\Message::setHttpVersion(string $http_version)
3 Set the HTTP protocol version of the message.
4 See http\Message::getHttpVersion().
9 The protocol version, e.g. "1.1", optionally prefixed by "HTTP/".
17 * If a non-standard version separator is encounted.
21 * http\Exception\InvalidArgumentException
22 * http\Exception\BadHeaderException
27 $message = new http\Message;
28 var_dump($message->getHttpVersion());
29 $message->setHttpVersion("HTTP/1_0");
30 var_dump($message->getHttpVersion());
36 Notice: Non-standard version separator '_' in HTTP protocol version 'HTTP/1_0'