From 28bdeec614d21d0ff2309431354e8cc389aac208 Mon Sep 17 00:00:00 2001 From: Andrei Zeliankou Date: Tue, 14 Mar 2023 11:06:09 +0000 Subject: Tests: added Perl test with many responses using streaming body. --- test/perl/streaming_body_multiple_responses/psgi.pl | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/perl/streaming_body_multiple_responses/psgi.pl (limited to 'test/perl/streaming_body_multiple_responses/psgi.pl') diff --git a/test/perl/streaming_body_multiple_responses/psgi.pl b/test/perl/streaming_body_multiple_responses/psgi.pl new file mode 100644 index 00000000..ffd026bd --- /dev/null +++ b/test/perl/streaming_body_multiple_responses/psgi.pl @@ -0,0 +1,11 @@ +my $counter = 2; + +my $app = sub { + my $env = shift; + + return sub { + my $responder = shift; + $responder->([200, ['Content-Type'=>'text/plain'], [$counter++]]); + $responder->([200, ['Content-Type'=>'text/plain'], [$counter++]]); + }; +}; -- cgit