Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (16 sloc) 0.499 kb
use AnyEvent;
my $app = sub {
my $env = shift;
warn "This app needs a server that supports psgi.streaming and psgi.nonblocking"
unless $env->{'psgi.streaming'} && $env->{'psgi.nonblocking'};
return sub {
my $respond = shift;
my $w = $respond->([ 200, ['Content-Type' => 'text/plain'] ]);
my $t; $t = AE::timer 2, 0, sub {
undef $t;
Jump to Line
Something went wrong with that request. Please try again.