]> Sergey Matveev's repositories - public-inbox.git/commit
www: start making gzipfilter the parent response class
authorEric Wong <e@yhbt.net>
Sun, 5 Jul 2020 23:27:40 +0000 (23:27 +0000)
committerEric Wong <e@yhbt.net>
Mon, 6 Jul 2020 20:01:15 +0000 (20:01 +0000)
commit20607bd628f4f8ea985661a8ce123ea482058144
tree24019dbd27aae84320265d5c42f9eee18be2354f
parent55263c56cf41c87f8977cd6a6be65ac07b5cea87
www: start making gzipfilter the parent response class

Virtually all of our responses are going to be gzipped, anyways.
This will allow us to utilize zlib as a buffering layer and
share common code for async blob retrieval responses.

To streamline this and allow GzipFilter to be a parent class,
we'll replace the NoopFilter with a similar CompressNoop class
which emulates the two Compress::Raw::Zlib::Deflate methods we
use.

This drops a bunch of redundant code and will hopefully make
upcoming WwwStream changes easier to reason about.
MANIFEST
lib/PublicInbox/CompressNoop.pm [new file with mode: 0644]
lib/PublicInbox/GzipFilter.pm
lib/PublicInbox/Mbox.pm
lib/PublicInbox/MboxGz.pm
lib/PublicInbox/NoopFilter.pm [deleted file]
lib/PublicInbox/WwwAtomStream.pm
lib/PublicInbox/WwwListing.pm
lib/PublicInbox/WwwStatic.pm