Plack-App-CGIBin-Streaming
view release on metacpan or search on metacpan
sleep 1;
}
print ($boundary);
Although multipart HTTP messages are quite exotic, there are situations
where you rather want to prevent this buffering. If your document is
very large for example, each instance of your plack server allocates the
RAM to buffer it. Also, you might perhaps send out the "<head>" section
of your HTTP document as fast as possible to enable the browser load JS
and CSS while the plack server is still busy with producing the actual
document.
"Plack::App::CGIBin::Streaming" compiles the CGI scripts using
CGI::Compile and provides a runtime environment similar to
"Plack::App::CGIBin". Compiled scripts are cached. For production
environments, it is possible to precompile and cache scripts at server
start time, see the "preload" option below.
Every single request is represented as an object that inherits from
Plack::App::CGIBin::Streaming::Request. This class mainly provides means
lib/Plack/App/CGIBin/Streaming.pm view on Meta::CPAN
sleep 1;
}
print ($boundary);
Although multipart HTTP messages are quite exotic, there are situations
where you rather want to prevent this buffering. If your document is very
large for example, each instance of your plack server allocates the RAM
to buffer it. Also, you might perhaps send out the C<< <head> >> section
of your HTTP document as fast as possible to enable the browser load JS and
CSS while the plack server is still busy with producing the actual document.
C<Plack::App::CGIBin::Streaming> compiles the CGI scripts using
L<CGI::Compile> and provides a runtime environment similar to
C<Plack::App::CGIBin>. Compiled scripts are cached. For production
environments, it is possible to precompile and cache scripts at server
start time, see the C<preload> option below.
Every single request is represented as an object that inherits from
L<Plack::App::CGIBin::Streaming::Request>. This class mainly provides
means for handling response headers and body.
( run in 0.301 second using v1.01-cache-2.11-cpan-87723dcf8b7 )