php-http / curl-client

cURL client
http://httplug.io
MIT License
443 stars 28 forks source link

Seekable and writable stream #46

Closed gmponos closed 5 years ago

gmponos commented 5 years ago

Hello,

How can you be sure that the stream is seekable and writable here and here?

mekras commented 5 years ago

I think we should add isSeekable and isWritable checks.

mekras commented 5 years ago

I just looked at the code carefully. We always createstream inside the method createResponseBuilder. This stream is created for php: / / temp with the "w"option. That is, it is always seekable and writable.