You are here

public function MessageTrait::getBody in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/zendframework/zend-diactoros/src/MessageTrait.php \Zend\Diactoros\MessageTrait::getBody()
  2. 8.0 vendor/guzzlehttp/psr7/src/MessageTrait.php \GuzzleHttp\Psr7\MessageTrait::getBody()
Same name and namespace in other branches
  1. 8 vendor/guzzlehttp/psr7/src/MessageTrait.php \GuzzleHttp\Psr7\MessageTrait::getBody()

File

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

Class

MessageTrait
Trait implementing functionality common to requests and responses.

Namespace

GuzzleHttp\Psr7

Code

public function getBody() {
  if (!$this->stream) {
    $this->stream = stream_for('');
  }
  return $this->stream;
}