Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (11 sloc) 271 Bytes
my $app = sub {
my $env = shift;
return sub {
my $respond = shift;
my $w = $respond->([ 200, ['X-Foo' => 'bar', 'Content-Type' => 'text/plain'] ]);
for (1..5) {
sleep 1;
$w->write(time . "\n");
}
};
};