Function copy_to_string
Copy the contents of a stream into a string until the given number of bytes have been read.
Namespace: GuzzleHttp\Psr7
Deprecated: copy_to_string will be removed in guzzlehttp/psr7:2.0. Use Utils::copyToString instead.
Located at functions.php
Deprecated: copy_to_string will be removed in guzzlehttp/psr7:2.0. Use Utils::copyToString instead.
Located at functions.php
Parameters summary
|
$stream |
Stream to read |
integer |
$maxLen = -1 |
Maximum number of bytes to read. Pass -1 to read the entire stream. |
Return value summary
string
|
string |
Thrown exceptions summary
RuntimeException
|
on error. |