php-http/message

Automatically register stream filters

sagikazarmark opened this issue · 3 comments

Currently filters are registered upon access to a Chunk/Dechunk stream:

https://github.com/php-http/message/blob/master/src/Encoding/ChunkStream.php#L17

As I can see some of the filters (chunk, dechunk) are implemented in the package for BC reasons (for example HHVM does not have chunk/dechunk filters).

Should we register these classes as stream filters automatically (eg. using composer autoloading)?

Would probably be better, but don't know if it's actually possible ?

👍 then