1CGI::Parse::PSGI(3) User Contributed Perl Documentation CGI::Parse::PSGI(3)
2
3
4
6 CGI::Parse::PSGI - Parses CGI output and creates PSGI response out of
7 it
8
10 use CGI::Parse::PSGI qw(parse_cgi_output);
11
12 my $output = YourApp->run;
13 my $psgi_res = parse_cgi_output(\$output);
14
16 CGI::Parse::PSGI exports one function "parse_cgi_output" that takes a
17 filehandle or a reference to a string to read a CGI script output, and
18 creates a PSGI response (an array reference containing status code,
19 headers and a body) by reading the output.
20
21 Use CGI::Emulate::PSGI if you have a CGI code not the output, which
22 takes care of automatically parsing the output, using this module, from
23 your callback code.
24
26 Tatsuhiko Miyagawa
27
29 CGI::Emulate::PSGI
30
31
32
33perl v5.12.4 2011-09-18 CGI::Parse::PSGI(3)