Add stream_chunked middleware parameter #251

Open
wants to merge 2 commits into from

2 participants

@athomason

This option allows transformation of chunked streaming responses into unchunked streaming responses by buffering calls to $writer->write. Only works with servers that support streamed responses.

The motivation of this is to allow Deflater to work with the chunked responses generated by Plack::App::Proxy::Backend::AnyEvent::HTTP under Twiggy.

athomason added some commits Oct 11, 2011
@athomason athomason Add stream_chunked middleware parameter
* This option allows transformation of chunked streaming responses into
  unchunked streaming responses by buffering calls to $writer->write. Only
  works with servers that support streamed responses.
735e799
@athomason athomason Prevent memory leak 181193b
@miyagawa
plack member

Looks good - can you supply a test?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment