]> Sergey Matveev's repositories - public-inbox.git/commit
view: introduce WwwStream interface
authorEric Wong <e@80x24.org>
Fri, 17 Jun 2016 21:32:59 +0000 (21:32 +0000)
committerEric Wong <e@80x24.org>
Sat, 18 Jun 2016 00:22:22 +0000 (00:22 +0000)
commit4af9fd9c5e46eed341a535f37d54cf228303326c
tree7df64098266acc2cbb501b7cc6d5a6c7dc0815ae
parentaab9613eb8f335c1cfeaec37c0794656a3cbcfee
view: introduce WwwStream interface

This will allow us to commonalize HTML generation in the future
and is the start of moving existing HTML generation to a "pull"
streaming model (from the existing "push" one).

Using the getline/close pull model is superior to the existing
$fh->write streaming as it allows us to throttle response
generation based on backpressure from slow clients.
lib/PublicInbox/View.pm
lib/PublicInbox/WwwStream.pm [new file with mode: 0644]
t/view.t