summaryrefslogtreecommitdiffhomepage
path: root/test/perl
diff options
context:
space:
mode:
Diffstat (limited to 'test/perl')
-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++]]);
+ };
+};