The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Plack::App::CGIBin::Streaming::IO - a helper PerlIO layer for Plack::App::CGIBin::Streaming

SYNOPSIS

 binmode HANDLE, 'via(Plack::App::CGIBin::Streaming::IO)';

DESCRIPTION

This module provides a PerlIO::via layer to capture all the output written to HANDLE. It uses the global variable $Plack::App::CGIBin::Streaming::R and passes the output via the print_content method.

A flush operation is passed by calling the flush method.

Attempts to read from a file handle configured with this layer result in an exception.

AUTHOR

Torsten Förtsch <torsten.foertsch@gmx.net>

COPYRIGHT

Copyright 2014 Binary.com

LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of the the Artistic License (2.0). A copy of the full license is provided by the LICENSE file in this distribution and can be obtained at

http://www.perlfoundation.org/artistic_license_2_0

SEE ALSO