You are here

public function PumpStream::getContents in Auth0 Single Sign On 8.2

Returns the remaining contents in a string

Return value

string

Throws

\RuntimeException if unable to read or an error occurs while reading.

Overrides StreamInterface::getContents

File

vendor/guzzlehttp/psr7/src/PumpStream.php, line 132

Class

PumpStream
Provides a read only stream that pumps data from a PHP callable.

Namespace

GuzzleHttp\Psr7

Code

public function getContents() {
  $result = '';
  while (!$this
    ->eof()) {
    $result .= $this
      ->read(1000000);
  }
  return $result;
}