summaryrefslogblamecommitdiffhomepage
path: root/test/perl/threads/psgi.pl
blob: dce28f7d1c8302a8373a19cde44da0abad7a99b9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                             
my $app = sub {
    my ($environ) = @_;

    sleep int($environ->{'HTTP_X_DELAY'});

    return ['200', [
        'Content-Length' => 0,
        'Psgi-Multithread' => $environ->{'psgi.multithread'},
        'X-Thread' => $environ->{'psgi.input'}
    ], []];
};