You are here

public function MessageTrait::withProtocolVersion in Auth0 Single Sign On 8.2

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;
}