fennb/phirehose

Support for response compression.

ap-m opened this issue · 1 comments

ap-m commented

Hello,

The Twitter streaming API supports response compression, according to:
https://dev.twitter.com/streaming/overview/processing#gzip-compression

But Phirehose doesn't appear to currently support this.

I did find some initial discussion from several years ago about supporting it, but it was inconclusive:
https://groups.google.com/forum/#!topic/phirehose-users/DNEZEAlHFvA

Are there any plans, or has there been any more recent work, to support response compression?

This would be useful functionality to have.

Thanks!

I'd love to see Phirehose adapted to work with PSR-7 streams (see StreamInterface. With that done, multiple stream handlers could be developed or existing ones plugged in, like a CurlStreamHandler, GzipStreamHandler, and whatever else folks can think up.