From 754b85c3eedc6717b9bb94fe82a80f36f25a3e9f Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Fri, 1 Mar 2019 17:13:51 +0300 Subject: Tests: Perl streaming body and delayed response simple tests. --- test/perl/delayed_response/psgi.pl | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/perl/delayed_response/psgi.pl (limited to 'test/perl/delayed_response/psgi.pl') diff --git a/test/perl/delayed_response/psgi.pl b/test/perl/delayed_response/psgi.pl new file mode 100644 index 00000000..f934c3a7 --- /dev/null +++ b/test/perl/delayed_response/psgi.pl @@ -0,0 +1,10 @@ +my $app = sub { + my ($environ) = @_; + + return sub { + (my $responder = shift)->([200, [ + 'Content-Type' => 'text/plain', + 'Content-Length' => '12' + ], ["Hello World!"]]); + } +}; -- cgit