/usr/share/doc/libplack-perl/examples/dot-psgi/echo-stream-sync.psgi is in libplack-perl 1.0033-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 | 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");
}
};
};
|