You are here

public function MessageTrait::withProtocolVersion in Lockr 7.3

File

vendor/guzzlehttp/psr7/src/MessageTrait.php, line 28

Class

MessageTrait
Trait implementing functionality common to requests and responses.

Namespace

GuzzleHttp\Psr7

Code

public function withProtocolVersion($version) {
  if ($this->protocol === $version) {
    return $this;
  }
  $new = clone $this;
  $new->protocol = $version;
  return $new;
}