You are here

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

File

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

Class

MessageTrait
Trait implementing functionality common to requests and responses.

Namespace

GuzzleHttp\Psr7

Code

public function withBody(StreamInterface $body) {
  if ($body === $this->stream) {
    return $this;
  }
  $new = clone $this;
  $new->stream = $body;
  return $new;
}