You are here

public function MessageInterface::withProtocolVersion in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/psr/http-message/src/MessageInterface.php \Psr\Http\Message\MessageInterface::withProtocolVersion()

Return an instance with the specified HTTP protocol version.

The version string MUST contain only the HTTP version number (e.g., "1.1", "1.0").

This method MUST be implemented in such a way as to retain the immutability of the message, and MUST return an instance that has the new protocol version.

Parameters

string $version HTTP protocol version:

Return value

self

1 method overrides MessageInterface::withProtocolVersion()
Message::withProtocolVersion in vendor/symfony/psr-http-message-bridge/Tests/Fixtures/Message.php
Return an instance with the specified HTTP protocol version.

File

vendor/psr/http-message/src/MessageInterface.php, line 41

Class

MessageInterface
HTTP messages consist of requests from a client to a server and responses from a server to a client. This interface defines the methods common to each.

Namespace

Psr\Http\Message

Code

public function withProtocolVersion($version);