WordPress\AiClientDependencies\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.
Method of the class: MessageInterface{}
No Hooks.
Returns
static.
Usage
$MessageInterface = new MessageInterface(); $MessageInterface->withProtocolVersion( $version ): MessageInterface;
- $version(string) (required)
- HTTP protocol version.
MessageInterface::withProtocolVersion() MessageInterface::withProtocolVersion code WP 7.0
public function withProtocolVersion(string $version): MessageInterface;