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