You are here

public function StreamWrapper::stream_cast in Lockr 7.3

File

vendor/guzzlehttp/psr7/src/StreamWrapper.php, line 109

Class

StreamWrapper
Converts Guzzle streams into PHP stream resources.

Namespace

GuzzleHttp\Psr7

Code

public function stream_cast($cast_as) {
  $stream = clone $this->stream;
  return $stream
    ->detach();
}