summaryrefslogtreecommitdiffhomepage
path: root/test/perl/streaming_body
diff options
context:
space:
mode:
Diffstat (limited to 'test/perl/streaming_body')
-rw-r--r--test/perl/streaming_body/psgi.pl13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/perl/streaming_body/psgi.pl b/test/perl/streaming_body/psgi.pl
new file mode 100644
index 00000000..a3e54ee0
--- /dev/null
+++ b/test/perl/streaming_body/psgi.pl
@@ -0,0 +1,13 @@
+my $app = sub {
+ my ($environ) = @_;
+
+ return sub {
+ my $writer = (my $responder = shift)->([200, [
+ 'Content-Type' => 'text/plain',
+ 'Content-Length' => '12'
+ ]]);
+
+ $writer->write("Hello World!");
+ $writer->close;
+ };
+};