summaryrefslogtreecommitdiffhomepage
path: root/test/perl/input_read_offset/psgi.pl
blob: 420b7d898a40800ebeca20645447ffc2492490aa (plain) (blame)
1
2
3
4
5
6
7
my $app = sub {
    my ($environ) = @_;

    $environ->{'psgi.input'}->read(my $body, 4, 4);

    return ['200', ['Content-Length' => 4], [$body]];
};