contributte / psr7-http-message

:dizzy: PSR #7 [HTTP Message Interface] to Nette Framework (@nette)
https://contributte.org/packages/contributte/psr7-http-message.html
MIT License
21 stars 5 forks source link

Implement FileStream #7

Closed f3l1x closed 6 years ago

f3l1x commented 6 years ago

Ideas:

mabar commented 6 years ago

For files from local filesystem there is already LazyOpenStream in Guzzle https://github.com/guzzle/psr7/blob/master/src/LazyOpenStream.php

For files from external filesystem could be used PumpStream - callback returns content of file.