summaryrefslogtreecommitdiffhomepage
path: root/test/perl/streaming_body_multiple_responses/psgi.pl
diff options
context:
space:
mode:
Diffstat (limited to 'test/perl/streaming_body_multiple_responses/psgi.pl')
-rw-r--r--test/perl/streaming_body_multiple_responses/psgi.pl11
1 files changed, 11 insertions, 0 deletions
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++]]);
+ };
+};