php-http / message

HTTP Message related tools
http://php-http.org
MIT License
1.29k stars 41 forks source link

Automatically register stream filters #16

Closed sagikazarmark closed 8 years ago

sagikazarmark commented 8 years ago

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)?

joelwurtz commented 8 years ago

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

sagikazarmark commented 8 years ago

I meant something like this: https://getcomposer.org/doc/04-schema.md#files

joelwurtz commented 8 years ago

:+1: then